diff options
author | lassulus <lassulus@lassul.us> | 2017-07-16 12:05:35 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-07-16 12:05:35 +0200 |
commit | cd7c0971ccc9023f63feb75d4abe514fdc03a079 (patch) | |
tree | 704c47afe8cd43a36f36f251cd53b340ec5ec4da /makefu/source.nix | |
parent | b91a4c4b0f0958cdc5e7c0d60523326083f275d4 (diff) | |
parent | 0e0ad14c373a038e6d347017f5efe172c7409793 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/source.nix')
-rw-r--r-- | makefu/source.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/makefu/source.nix b/makefu/source.nix new file mode 100644 index 000000000..a24af4dfb --- /dev/null +++ b/makefu/source.nix @@ -0,0 +1,38 @@ +with import <stockholm/lib>; +host@{ name, secure ? false, override ? {}, full ? false }: let + builder = if getEnv "dummy_secrets" == "true" + then "buildbot" + else "makefu"; + _file = <stockholm> + "/makefu/1systems/${name}/source.nix"; + ref = "06734d1"; # unstable @ 2017-07-03 + graceful requests2 (a772c3aa) + +in + evalSource (toString _file) [ + { + nixos-config.symlink = "stockholm/makefu/1systems/${name}/config.nix"; + # always perform a full populate when buildbot + nixpkgs = if full || (builder == "buildbot" ) then { + git = { + url = https://github.com/makefu/nixpkgs; + inherit ref; + }; + } else { + # TODO use http, once it is implemented + # right now it is simply extracted revision folder + + ## prepare so we do not have to wait for rsync: + ## cd /var/src; curl https://github.com/nixos/nixpkgs/tarball/125ffff -L | tar zx && mv NixOS-nixpkgs-125ffff nixpkgs + file = "/home/makefu/store/${ref}"; + }; + + secrets.file = getAttr builder { + buildbot = toString <stockholm/makefu/6tests/data/secrets>; + makefu = "/home/makefu/secrets/${name}"; + }; + stockholm.file = toString <stockholm>; + } + (mkIf (builder == "makefu") { + secrets-common.file = "/home/makefu/secrets/common"; + }) + override + ] |