diff options
author | tv <tv@shackspace.de> | 2015-07-04 10:27:42 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-04 10:27:42 +0200 |
commit | cef42fc9b508af7f3987b677d637cf69251102ee (patch) | |
tree | 4725d38a0ff89c98b219b3897b02060c5d9c7934 /bin | |
parent | dfad67c00dedf9c6bcba697e9021e9023170e00b (diff) |
nixos-build: don't provide <secrets> to prefetch
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/nixos-build | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/nixos-build b/bin/nixos-build index 41e9774a3..cfbf07123 100755 --- a/bin/nixos-build +++ b/bin/nixos-build @@ -14,15 +14,9 @@ nixos_config=$config_root/modules/$host secrets_nix=$secrets_root/$host/nix secrets_rsync=$secrets_root/$host/rsync -( - # Notice NIX_PATH used from host - # Notice secrets required to evaluate configuration - NIX_PATH=$NIX_PATH:nixos-config=$nixos_config - NIX_PATH=$NIX_PATH:secrets=$secrets_nix - export NIX_PATH - +# Notice how host's NIX_PATH is used to prefetch nixpkgs. +NIXOS_CONFIG=$nixos_config \ prefetch nixpkgs tmp/nixpkgs/$host -) nix-build \ -I "$nixpkgs" \ |