2017-07-11 09:26:24 +00:00
|
|
|
with import <stockholm/lib>;
|
2018-01-24 16:26:24 +00:00
|
|
|
host@{ name, secure ? false, override ? {} }: let
|
2017-07-11 09:26:24 +00:00
|
|
|
builder = if getEnv "dummy_secrets" == "true"
|
|
|
|
then "buildbot"
|
2017-07-13 22:17:58 +00:00
|
|
|
else "krebs";
|
|
|
|
_file = <stockholm> + "/krebs/1systems/${name}/source.nix";
|
2018-02-28 13:47:12 +00:00
|
|
|
pkgs = import <nixpkgs> {
|
|
|
|
overlays = map import [
|
|
|
|
<stockholm/krebs/5pkgs>
|
2018-06-19 19:23:35 +00:00
|
|
|
<stockholm/submodules/nix-writers/pkgs>
|
2018-02-28 13:47:12 +00:00
|
|
|
];
|
|
|
|
};
|
2017-07-11 09:26:24 +00:00
|
|
|
in
|
2018-01-24 16:26:24 +00:00
|
|
|
evalSource (toString _file) [
|
|
|
|
{
|
|
|
|
nixos-config.symlink = "stockholm/krebs/1systems/${name}/config.nix";
|
|
|
|
secrets = getAttr builder {
|
2018-05-09 09:11:50 +00:00
|
|
|
buildbot.file = toString <stockholm/krebs/0tests/data/secrets>;
|
2018-01-24 16:26:24 +00:00
|
|
|
krebs.pass = {
|
|
|
|
dir = "${getEnv "HOME"}/brain";
|
|
|
|
name = "krebs-secrets/${name}";
|
|
|
|
};
|
2017-12-15 02:36:30 +00:00
|
|
|
};
|
2018-01-24 16:26:24 +00:00
|
|
|
stockholm.file = toString <stockholm>;
|
2018-02-28 13:47:12 +00:00
|
|
|
stockholm-version.pipe = "${pkgs.stockholm}/bin/get-version";
|
2018-06-04 10:55:49 +00:00
|
|
|
nixpkgs = (import ./krops.nix { name = ""; }).krebs-source.nixpkgs;
|
2018-01-24 16:26:24 +00:00
|
|
|
}
|
|
|
|
override
|
|
|
|
]
|