stockholm/krebs/source.nix

32 lines
995 B
Nix
Raw Normal View History

with import <stockholm/lib>;
2018-01-24 16:26:24 +00:00
host@{ name, secure ? false, override ? {} }: let
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>
];
};
in
2018-01-24 16:26:24 +00:00
evalSource (toString _file) [
{
nixos-config.symlink = "stockholm/krebs/1systems/${name}/config.nix";
secrets = getAttr builder {
buildbot.file = toString <stockholm/krebs/6tests/data/secrets>;
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-01-24 16:26:24 +00:00
nixpkgs.git = {
url = https://github.com/NixOS/nixpkgs;
2018-04-02 21:06:03 +00:00
ref = "09bca91e3b5a18d7f37f7632175ac71f2bf369ff"; # nixos-18.03 # 2018-04-02
2018-01-24 16:26:24 +00:00
};
}
override
]