stockholm/lass/source.nix

30 lines
953 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>
2018-06-19 19:23:35 +00:00
<stockholm/submodules/nix-writers/pkgs>
2018-02-28 13:47:12 +00:00
];
};
in
2017-09-02 14:16:37 +00:00
evalSource (toString _file) [
{
2018-05-13 17:39:19 +00:00
nixos-config.symlink = "stockholm/lass/1systems/${name}/physical.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
]