summaryrefslogtreecommitdiffstats
path: root/nin/2configs/default.nix
diff options
context:
space:
mode:
authornin <nineinchnade@gmail.com>2017-01-26 22:11:45 +0100
committernin <nineinchnade@gmail.com>2017-01-26 22:27:58 +0100
commitccdb47ed6c5ab88276214aacc869573dae9b867c (patch)
tree69027d91e411d8e6fdce5be3006bdc112d4ff940 /nin/2configs/default.nix
parent832fe4868cf6c800a559ebabb07b34babb181853 (diff)
n 2: add dummy secrects
Diffstat (limited to 'nin/2configs/default.nix')
-rw-r--r--nin/2configs/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nin/2configs/default.nix b/nin/2configs/default.nix
index 0ff0f8ae8..ed205a791 100644
--- a/nin/2configs/default.nix
+++ b/nin/2configs/default.nix
@@ -58,7 +58,10 @@ with import <stockholm/lib>;
user = config.krebs.users.nin;
source = let inherit (config.krebs.build) host; in {
nixos-config.symlink = "stockholm/nin/1systems/${host.name}.nix";
- secrets.file = "/home/nin/secrets/${host.name}";
+ secrets.file =
+ if getEnv "dummy_secrets" == "true"
+ then toString <stockholm/nin/6tests/dummysecrets>
+ else "/home/nin/secrets/${host.name}";
stockholm.file = getEnv "PWD";
};
};