summaryrefslogtreecommitdiffstats
path: root/nin/krops.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-11-14 09:31:06 +0100
committertv <tv@krebsco.de>2018-11-14 09:31:06 +0100
commita2ac22b31e2e6eb74469a56759e027a723eeffac (patch)
treec7291ef586d287255d7f259981602d3f2abe11fd /nin/krops.nix
parentf2ca6be6a73df133d127b5b3efe100ff9a3cbd9b (diff)
parentaf869d56c49e94357232588756b27703054456e0 (diff)
Merge remote-tracking branch 'prism/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; };
- };
-}