summaryrefslogtreecommitdiffstats
path: root/nin/krops.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-21 20:38:40 +0200
committerlassulus <lassulus@lassul.us>2020-04-21 20:38:40 +0200
commit077b2783d19ab0377c1fa8ef6fbfdf5ef7481a7f (patch)
tree098f77c116b6a4ff6025fbb49a42631c0888443d /nin/krops.nix
parent0eb9a9272baf7bba2aa8eee77a278f902e867e1e (diff)
remove nin
Diffstat (limited to 'nin/krops.nix')
-rw-r--r--nin/krops.nix35
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; };
- };
-}