2017-07-11 09:26:24 +00:00
|
|
|
with import <stockholm/lib>;
|
2017-09-02 14:16:37 +00:00
|
|
|
host@{ name, secure ? false, override ? {} }: let
|
2017-07-11 09:26:24 +00:00
|
|
|
builder = if getEnv "dummy_secrets" == "true"
|
|
|
|
then "buildbot"
|
|
|
|
else "lass";
|
|
|
|
_file = <stockholm> + "/lass/1systems/${name}/source.nix";
|
|
|
|
in
|
2017-09-02 14:16:37 +00:00
|
|
|
evalSource (toString _file) [
|
|
|
|
{
|
|
|
|
nixos-config.symlink = "stockholm/lass/1systems/${name}/config.nix";
|
|
|
|
nixpkgs.git = {
|
2017-09-19 18:42:12 +00:00
|
|
|
url = https://github.com/nixos/nixpkgs;
|
2018-01-03 23:01:41 +00:00
|
|
|
ref = "0b30c1d";
|
2017-09-02 14:16:37 +00:00
|
|
|
};
|
2017-12-18 00:05:30 +00:00
|
|
|
secrets = getAttr builder {
|
|
|
|
buildbot.file = toString <stockholm/lass/2configs/tests/dummy-secrets>;
|
|
|
|
lass.pass = {
|
|
|
|
dir = "${getEnv "HOME"}/.password-store";
|
|
|
|
name = "hosts/${name}";
|
|
|
|
};
|
2017-09-02 14:16:37 +00:00
|
|
|
};
|
|
|
|
stockholm.file = toString <stockholm>;
|
|
|
|
}
|
|
|
|
override
|
|
|
|
]
|