1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00
nix/doc/manual/source/command-ref/nix-env
Andy Hamon 3716ded8df nix-env: add a --priority flag to --install
nix-env can read priorities from a derivations meta attributes, but this
only works when installing a nix expression.

nix-env can also install bare store paths, however meta attributes are
not readable in that case. This means that a store path can not be
installed with a specific priority.

Some cases where it is advantageous to install a store path: a remote
host following a `nix copy`, or any time you want to save some
evaluation time and happen to already know the store path.

This PR addresses this shortcoming by adding a --priority flag to
nix-env --install.
2025-01-16 11:46:25 -08:00
..
delete-generations.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
env-common.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
install.md nix-env: add a --priority flag to --install 2025-01-16 11:46:25 -08:00
list-generations.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
opt-common.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
query.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
rollback.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
set-flag.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
set.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
switch-generation.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
switch-profile.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
uninstall.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00
upgrade.md Rename doc/manual{src -> source} 2024-10-14 11:21:24 -04:00