n 2: add dummy secrects

This commit is contained in:
nin 2017-01-26 22:11:45 +01:00
parent 832fe4868c
commit ccdb47ed6c
2 changed files with 4 additions and 1 deletions

View File

@ -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";
};
};

View File