nixos-rebuild: add --impure flag

There are two use case for this flag:

1. NixOS developer usually use a nixpkgs checkout for development.
Copying nixpkgs everytime when rebuilding NixOS is way to slow, even
with NVME disks.

2. Folks migrating from impure configuration in a sufficient complex
infrastructure need this flag to gradually migrate to NixOS flakes.
This commit is contained in:
Jörg Thalheim 2020-08-12 06:52:32 +01:00
parent e1e412215d
commit b8a19ca2bc
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -121,6 +121,9 @@
<arg>
<option>--no-net</option>
</arg>
<arg>
<option>--impure</option>
</arg>
<arg>
<group choice='req'>
<arg choice='plain'><option>--verbose</option></arg>
@ -597,6 +600,10 @@
<option>--keep-failed</option> / <option>-K</option>,
<option>--keep-going</option> / <option>-k</option> and <option>--verbose</option> /
<option>-v</option>. See the Nix manual for details.
The following Nix flags that are support by the upcoming nix 2.4 version:
<option>-L</option>, <option>--refresh</option>, <option>--no-net</option>,
<option>--no-net</option>, <option>--impure</option>. See <command>nix --help</command> or <command>nix build --help</command> for details.
</para>
</refsection>