From 66df776c746ff5385c415f06eafdecbb8f51ae0b Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 9 Sep 2018 10:24:13 +0200 Subject: tv: add krops config --- tv/krops.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tv/krops.nix (limited to 'tv/krops.nix') diff --git a/tv/krops.nix b/tv/krops.nix new file mode 100644 index 000000000..231486ab7 --- /dev/null +++ b/tv/krops.nix @@ -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; + }; + +} -- cgit v1.2.3