summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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";
};
};
diff --git a/nin/6tests/dummysecrets/ssh.id_ed25519 b/nin/6tests/dummysecrets/ssh.id_ed25519
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/nin/6tests/dummysecrets/ssh.id_ed25519