nixos-install: Respect host $NIX_CONF_DIR and don't assume nix.conf exists
This commit is contained in:
parent
979117b6b8
commit
9db243b4aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue