stockholm/lass/source.nix

26 lines
775 B
Nix
Raw Normal View History

with import <stockholm/lib>;
2017-09-02 14:16:37 +00:00
host@{ name, secure ? false, override ? {} }: let
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-09 17:03:28 +00:00
ref = "d202e30";
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
]