diff options
author | lassulus <lassulus@lassul.us> | 2020-04-21 20:38:40 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-04-21 21:46:42 +0200 |
commit | c49867b40327f83a18b956404875637ca379c1ba (patch) | |
tree | b8d4f741d3a631ff21a236d2a9acc8d3c369340c /nin/krops.nix | |
parent | 0eb9a9272baf7bba2aa8eee77a278f902e867e1e (diff) |
remove nin
Diffstat (limited to 'nin/krops.nix')
-rw-r--r-- | nin/krops.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/nin/krops.nix b/nin/krops.nix deleted file mode 100644 index 52aeb8470..000000000 --- a/nin/krops.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ name }: let - inherit (import ../krebs/krops.nix { inherit name; }) - krebs-source - lib - pkgs - ; - - source = { test }: lib.evalSource [ - (krebs-source { test = test; }) - { - nixos-config.symlink = "stockholm/nin/1systems/${name}/config.nix"; - secrets = if test then { - file = toString ./0tests/dummysecrets; - } else { - pass = { - dir = "${lib.getEnv "HOME"}/.password-store"; - name = "hosts/${name}"; - }; - }; - } - ]; - -in { - # usage: $(nix-build --no-out-link --argstr name HOSTNAME -A deploy) - deploy = pkgs.krops.writeDeploy "${name}-deploy" { - source = source { test = false; }; - target = "root@${name}/var/src"; - }; - - # usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test) - test = { target }: pkgs.krops.writeTest "${name}-test" { - inherit target; - source = source { test = true; }; - }; -} |