mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
* New operation `nix-env --set' which sets a user environment to a
single derivation specified by the argument. This is useful when we want to have a profile for a single derivation, such as a server configuration. Then we can just say (e.g.) $ nix-env -p /.../server-profile -f server.nix --set -A server We can't do queries or upgrades on such a profile, but we can do rollbacks. The advantage over -i is that we don't have to worry about other packages having been installed in the profile previously; --set gets rid of them.
This commit is contained in:
parent
1a7e88bbd9
commit
7ace29dae7
3 changed files with 31 additions and 0 deletions
|
@ -45,6 +45,9 @@
|
|||
configuration setting
|
||||
<literal>build-max-silent-time</literal>.</para></listitem>
|
||||
|
||||
|
||||
<listitem><para>TODO: <command>nix-env</command>
|
||||
<option>--set</option>.</para></listitem>
|
||||
|
||||
|
||||
</itemizedlist>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue