mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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
|
||||
# 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 New Issue
Block a user