nixos-install: Respect host $NIX_CONF_DIR and don't assume nix.conf exists

This commit is contained in:
Shea Levy
2013-02-04 07:46:31 -05:00
parent 979117b6b8
commit 9db243b4aa
+1 -1
View File
@@ -110,7 +110,7 @@ export LC_TIME=
# Create a temporary Nix config file that causes the nixbld users to
# be used.
echo "build-users-group = nixbld" > $mountPoint/tmp/nix.conf
grep binary-caches /etc/nix/nix.conf >> $mountPoint/tmp/nix.conf
grep binary-caches "$NIX_CONF_DIR/nix.conf" >> $mountPoint/tmp/nix.conf || true
export NIX_CONF_DIR=/tmp