summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-04 10:27:42 +0200
committertv <tv@krebsco.de>2015-07-04 10:27:42 +0200
commitdd5c0791806222fb8a73b0691928f506c601065a (patch)
tree4725d38a0ff89c98b219b3897b02060c5d9c7934
parent96ab6b74d373dbfdd05343ace39c8afaee8cae54 (diff)
nixos-build: don't provide <secrets> to prefetch
-rwxr-xr-xbin/nixos-build10
-rw-r--r--modules/cd/default.nix2
-rw-r--r--modules/mkdir/default.nix2
-rw-r--r--modules/rmdir/default.nix2
-rw-r--r--modules/wu/users.nix2
5 files changed, 6 insertions, 12 deletions
diff --git a/bin/nixos-build b/bin/nixos-build
index 41e9774..cfbf071 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" \
diff --git a/modules/cd/default.nix b/modules/cd/default.nix
index 016f883..d57d46b 100644
--- a/modules/cd/default.nix
+++ b/modules/cd/default.nix
@@ -7,7 +7,7 @@ in
{
imports =
[
- <secrets/hashedPasswords.nix>
+ { users.extraUsers = import <secrets/extraUsers.nix>; }
./networking.nix
./users.nix
../common/nixpkgs.nix
diff --git a/modules/mkdir/default.nix b/modules/mkdir/default.nix
index 964a3c4..5427a45 100644
--- a/modules/mkdir/default.nix
+++ b/modules/mkdir/default.nix
@@ -7,7 +7,7 @@ in
{
imports =
[
- <secrets/hashedPasswords.nix>
+ { users.extraUsers = import <secrets/extraUsers.nix>; }
./networking.nix
./users.nix
../common/nixpkgs.nix
diff --git a/modules/rmdir/default.nix b/modules/rmdir/default.nix
index 346618a..62fbd84 100644
--- a/modules/rmdir/default.nix
+++ b/modules/rmdir/default.nix
@@ -7,7 +7,7 @@ in
{
imports =
[
- <secrets/hashedPasswords.nix>
+ { users.extraUsers = import <secrets/extraUsers.nix>; }
./networking.nix
./users.nix
../common/nixpkgs.nix
diff --git a/modules/wu/users.nix b/modules/wu/users.nix
index 4c86314..e50878c 100644
--- a/modules/wu/users.nix
+++ b/modules/wu/users.nix
@@ -211,7 +211,7 @@ in
{
imports = [
- <secrets/hashedPasswords.nix>
+ { users.extraUsers = import <secrets/extraUsers.nix>; }
];
users.defaultUserShell = "/run/current-system/sw/bin/bash";