summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-09-09 10:24:13 +0200
committertv <tv@krebsco.de>2018-09-09 10:26:51 +0200
commit66df776c746ff5385c415f06eafdecbb8f51ae0b (patch)
treeeadb275c5c48bb7ad56791138c687127b88aadfc /tv
parentdf809dca51b2a4037449d626e14a75aa91be7b3a (diff)
tv: add krops config
Diffstat (limited to 'tv')
-rw-r--r--tv/krops.nix22
1 files changed, 22 insertions, 0 deletions
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;
+ };
+
+}