2017-12-05 22:29:45 +01:00
|
|
|
with import <stockholm/lib>;
|
|
|
|
host@{ name, secure ? false, override ? {} }: let
|
|
|
|
builder = if getEnv "dummy_secrets" == "true"
|
|
|
|
then "buildbot"
|
|
|
|
else "jeschli";
|
|
|
|
_file = <stockholm> + "/jeschli/1systems/${name}/source.nix";
|
2018-02-28 14:47:12 +01:00
|
|
|
pkgs = import <nixpkgs> {
|
|
|
|
overlays = map import [
|
|
|
|
<stockholm/krebs/5pkgs>
|
|
|
|
];
|
|
|
|
};
|
2017-12-05 22:29:45 +01:00
|
|
|
in
|
|
|
|
evalSource (toString _file) [
|
|
|
|
{
|
|
|
|
nixos-config.symlink = "stockholm/jeschli/1systems/${name}/config.nix";
|
2018-03-24 12:08:14 +01:00
|
|
|
nixpkgs = (import <stockholm/krebs/source.nix> host).nixpkgs;
|
2017-12-05 22:29:45 +01:00
|
|
|
secrets.file = getAttr builder {
|
|
|
|
buildbot = toString <stockholm/jeschli/2configs/tests/dummy-secrets>;
|
2017-12-14 17:10:28 +01:00
|
|
|
jeschli = "${getEnv "HOME"}/secrets/${name}";
|
2017-12-05 22:29:45 +01:00
|
|
|
};
|
|
|
|
stockholm.file = toString <stockholm>;
|
2018-02-28 14:47:12 +01:00
|
|
|
stockholm-version.pipe = "${pkgs.stockholm}/bin/get-version";
|
2017-12-05 22:29:45 +01:00
|
|
|
}
|
|
|
|
override
|
|
|
|
]
|