diff options
author | nin <nineinchnade@gmail.com> | 2017-01-26 22:11:45 +0100 |
---|---|---|
committer | nin <nineinchnade@gmail.com> | 2017-01-26 22:27:58 +0100 |
commit | ccdb47ed6c5ab88276214aacc869573dae9b867c (patch) | |
tree | 69027d91e411d8e6fdce5be3006bdc112d4ff940 | |
parent | 832fe4868cf6c800a559ebabb07b34babb181853 (diff) |
n 2: add dummy secrects
-rw-r--r-- | nin/2configs/default.nix | 5 | ||||
-rw-r--r-- | nin/6tests/dummysecrets/ssh.id_ed25519 | 0 |
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 |