summaryrefslogtreecommitdiffstats
path: root/nin
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
commit554bb9ae43d41c2a4811c574b8cbb8d6aa8fda28 (patch)
tree05b103049d4ed396497aba6c8897349273d61217 /nin
parent60793a9b70626ef1138a9f1f4756f3f796d7e90a (diff)
n 2: add dummy secrects
Diffstat (limited to 'nin')
-rw-r--r--nin/2configs/default.nix5
-rw-r--r--nin/6tests/dummysecrets/ssh.id_ed255190
2 files changed, 4 insertions, 1 deletions
diff --git a/nin/2configs/default.nix b/nin/2configs/default.nix
index 0ff0f8a..ed205a7 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";
};
};
diff --git a/nin/6tests/dummysecrets/ssh.id_ed25519 b/nin/6tests/dummysecrets/ssh.id_ed25519
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nin/6tests/dummysecrets/ssh.id_ed25519