tv source: turn dummy_secrets into an argument

This commit is contained in:
tv 2018-01-02 20:22:44 +01:00
parent 6ed214fc77
commit 84fdbeba2c

View File

@ -1,8 +1,10 @@
with import <stockholm/lib>; with import <stockholm/lib>;
host@{ name, secure ? false, override ? {} }: let { name
builder = if getEnv "dummy_secrets" == "true" , dummy_secrets ? getEnv "dummy_secrets" == "true"
then "buildbot" , override ? {}
else "tv"; , secure ? false
}@host: let
builder = if dummy_secrets then "buildbot" else "tv";
_file = <stockholm> + "/tv/1systems/${name}/source.nix"; _file = <stockholm> + "/tv/1systems/${name}/source.nix";
in in
evalSource (toString _file) [ evalSource (toString _file) [