diff options
author | tv <tv@krebsco.de> | 2018-01-02 20:22:44 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-01-02 20:32:56 +0100 |
commit | e46a031442299bc2284efc838e99e91582fbafe9 (patch) | |
tree | e5e7d96e6a26632b94203434f74355ecc31acd1e | |
parent | fd50630abb30c45ceb2ec7adfa4cc30a24c75540 (diff) |
tv source: turn dummy_secrets into an argument
-rw-r--r-- | tv/source.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tv/source.nix b/tv/source.nix index 31308fc..b5e3f7c 100644 --- a/tv/source.nix +++ b/tv/source.nix @@ -1,8 +1,10 @@ with import <stockholm/lib>; -host@{ name, secure ? false, override ? {} }: let - builder = if getEnv "dummy_secrets" == "true" - then "buildbot" - else "tv"; +{ name +, dummy_secrets ? getEnv "dummy_secrets" == "true" +, override ? {} +, secure ? false +}@host: let + builder = if dummy_secrets then "buildbot" else "tv"; _file = <stockholm> + "/tv/1systems/${name}/source.nix"; in evalSource (toString _file) [ |