summaryrefslogtreecommitdiffstats
path: root/nin/krops.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-11-14 10:42:32 +0100
committermakefu <github@syntax-fehler.de>2018-11-14 10:42:32 +0100
commit7bd931e196ccef10c3352fd1b556d8b515e9202d (patch)
tree2909911993cecc76805fbc696071b6c36d1c81ec /nin/krops.nix
parent424e6d50af975c929d09f35d434295a823168db0 (diff)
parentaf869d56c49e94357232588756b27703054456e0 (diff)
Merge remote-tracking branch 'lassul.us/master'
Diffstat (limited to 'nin/krops.nix')
-rw-r--r--nin/krops.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/nin/krops.nix b/nin/krops.nix
deleted file mode 100644
index fef8cc38b..000000000
--- a/nin/krops.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{ name }: let
- inherit (import ../krebs/krops.nix { inherit name; })
- krebs-source
- lib
- pkgs
- ;
-
- source = { test }: lib.evalSource [
- krebs-source
- {
- 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" {
- force = true;
- inherit target;
- source = source { test = true; };
- };
-}