summaryrefslogtreecommitdiffstats
path: root/tv/source.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-14 03:40:58 +0200
committertv <tv@krebsco.de>2017-07-14 03:40:58 +0200
commitb3d3c5ff04c51350389b0fd74239e0069f9c7267 (patch)
treef7d3b26856ac4aebb3648b8f8ee101c18dd7650d /tv/source.nix
parentdeecf14af29062f161149a832646cdf1e0c5b0dc (diff)
tv source: no secret-{common,master} when dummy_secrets
Diffstat (limited to 'tv/source.nix')
-rw-r--r--tv/source.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/tv/source.nix b/tv/source.nix
index dcfdb7552..18733ee5c 100644
--- a/tv/source.nix
+++ b/tv/source.nix
@@ -17,10 +17,12 @@ in
buildbot = toString <stockholm/tv/dummy_secrets>;
tv = "/home/tv/secrets/${name}";
};
- secrets-common.file = "/home/tv/secrets/common";
stockholm.file = toString <stockholm>;
}
- (mkIf secure {
+ (mkIf (builder == "tv") {
+ secrets-common.file = "/home/tv/secrets/common";
+ })
+ (mkIf (builder == "tv" && secure) {
secrets-master.file = "/home/tv/secrets/master";
})
override