tv: add krops config

This commit is contained in:
tv 2018-09-09 10:24:13 +02:00
parent df809dca51
commit 66df776c74

22
tv/krops.nix Normal file
View file

@ -0,0 +1,22 @@
{ name }: rec {
inherit (import ../krebs/krops.nix { inherit name; })
krebs-source
lib
pkgs
;
source = lib.evalSource [
krebs-source
{
nixos-config.symlink = "stockholm/tv/1systems/${name}/config.nix";
secrets.file = toString ./dummy_secrets;
}
];
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
test = { target }: pkgs.krops.writeTest "tv-krops-${name}-ci" {
inherit source target;
};
}