summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-06-11 00:27:12 +0200
committerlassulus <lass@aidsballs.de>2016-06-11 00:27:12 +0200
commit05e339626edb6b6a62cda74ee27389fc51b8be41 (patch)
tree0f118179c42f9f488cec5f4592f035361cc1b23c
parent14fd045f5bab7252d3fa9d4c909b471312b5399d (diff)
l 2: enable dummy_secrets via env
-rw-r--r--lass/2configs/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lass/2configs/default.nix b/lass/2configs/default.nix
index ce42a1ffa..6dcec5c18 100644
--- a/lass/2configs/default.nix
+++ b/lass/2configs/default.nix
@@ -58,7 +58,10 @@ with config.krebs.lib;
user = config.krebs.users.lass;
source = mapAttrs (_: mkDefault) ({
nixos-config = "symlink:stockholm/lass/1systems/${config.krebs.build.host.name}.nix";
- secrets = "/home/lass/secrets/${config.krebs.build.host.name}";
+ secrets =
+ if getEnv "dummy_secrets" == "true"
+ then toString <stockholm/lass/2configs/tests/dummy-secrets>
+ else "/home/lass/secrets/${config.krebs.build.host.name}";
#secrets-common = "/home/lass/secrets/common";
stockholm = "/home/lass/stockholm";
nixpkgs = {