nixos-install: Respect host $NIX_CONF_DIR and don't assume nix.conf exists
This commit is contained in:
parent
979117b6b8
commit
9db243b4aa
@ -110,7 +110,7 @@ export LC_TIME=
|
|||||||
# Create a temporary Nix config file that causes the nixbld users to
|
# Create a temporary Nix config file that causes the nixbld users to
|
||||||
# be used.
|
# be used.
|
||||||
echo "build-users-group = nixbld" > $mountPoint/tmp/nix.conf
|
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
|
export NIX_CONF_DIR=/tmp
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user