Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
19 lines
702 B
Markdown
19 lines
702 B
Markdown
# Package Management {#sec-package-management}
|
|
|
|
This section describes how to add additional packages to your system.
|
|
NixOS has two distinct styles of package management:
|
|
|
|
- *Declarative*, where you declare what packages you want in your
|
|
`configuration.nix`. Every time you run `nixos-rebuild`, NixOS will
|
|
ensure that you get a consistent set of binaries corresponding to
|
|
your specification.
|
|
|
|
- *Ad hoc*, where you install, upgrade and uninstall packages via the
|
|
`nix-env` command. This style allows mixing packages from different
|
|
Nixpkgs versions. It's the only choice for non-root users.
|
|
|
|
```{=include=} sections
|
|
declarative-packages.section.md
|
|
ad-hoc-packages.section.md
|
|
```
|