stockholm/lass/source.nix

29 lines
905 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";
2018-02-28 13:47:12 +00:00
pkgs = import <nixpkgs> {
overlays = map import [
<stockholm/krebs/5pkgs>
];
};
in
2017-09-02 14:16:37 +00:00
evalSource (toString _file) [
{
nixos-config.symlink = "stockholm/lass/1systems/${name}/config.nix";
2018-01-24 13:49:50 +00:00
nixpkgs = (import <stockholm/krebs/source.nix> host).nixpkgs;
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>;
2018-02-28 13:47:12 +00:00
stockholm-version.pipe = "${pkgs.stockholm}/bin/get-version";
2017-09-02 14:16:37 +00:00
}
override
]