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;
|
2017-10-05 02:37:19 +00:00
|
|
|
ref = "1987983";
|
2017-09-02 14:16:37 +00:00
|
|
|
};
|
|
|
|
secrets.file = getAttr builder {
|
|
|
|
buildbot = toString <stockholm/lass/2configs/tests/dummy-secrets>;
|
|
|
|
lass = "/home/lass/secrets/${name}";
|
|
|
|
};
|
|
|
|
stockholm.file = toString <stockholm>;
|
|
|
|
}
|
|
|
|
override
|
|
|
|
]
|