aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/kops
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-05-03 13:11:21 +0200
committerlassulus <lassulus@lassul.us>2018-05-03 13:11:33 +0200
commitf30debc65ca41beddde696393718764376b9e299 (patch)
treeb5e432308af01e7ee8ab8b45eac2baebc913d5f0 /pkgs/kops
parent999bf89a7b5bf71cd281a103d728bdcfa762b9b9 (diff)
kops -> krops
Diffstat (limited to 'pkgs/kops')
-rw-r--r--pkgs/kops/default.nix48
1 files changed, 0 insertions, 48 deletions
diff --git a/pkgs/kops/default.nix b/pkgs/kops/default.nix
deleted file mode 100644
index fc52327..0000000
--- a/pkgs/kops/default.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-let
- lib = import ../../lib // {
- isLocalTarget = let
- origin = lib.mkTarget "";
- in target:
- target.host == origin.host &&
- target.user == origin.user;
- };
-in
-
-{ nix, openssh, populate, writeDash, writeJSON }: {
-
- writeDeploy = name: { source, target }: let
- target' = lib.mkTarget target;
- in
- writeDash name ''
- set -efu
-
- ${populate}/bin/populate \
- ${target'.user}@${target'.host}:${target'.port}${target'.path} \
- < ${writeJSON "${name}-source.json" source}
-
- ${openssh}/bin/ssh \
- ${target'.user}@${target'.host} -p ${target'.port} \
- nixos-rebuild switch -I ${target'.path}
- '';
-
- writeTest = name: { source, target }: let
- target' = lib.mkTarget target;
- in
- assert lib.isLocalTarget target';
- writeDash name ''
- set -efu
-
- ${populate}/bin/populate --force \
- ${target'.path} \
- < ${writeJSON "${name}-source.json" source}
-
- ${nix}/bin/nix-build \
- -A config.system.build.toplevel \
- -I ${target'.path} \
- --arg modules '[<nixos-config>]' \
- --no-out-link \
- --show-trace \
- '<nixpkgs/nixos/lib/eval-config.nix>'
- '';
-
-}