summaryrefslogtreecommitdiffstats
path: root/krebs/krops.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-07-08 01:10:56 +0200
committermakefu <github@syntax-fehler.de>2019-07-08 01:10:56 +0200
commit0a8475344aafdfb623173c7586c3539337b9574e (patch)
tree3dfaf610663d8b0d48286c36cae09e9c19dbce91 /krebs/krops.nix
parent7ca133e90b565e0cd97fe447b3bd4872d11a22a8 (diff)
krebs/krops.nix: add target
Diffstat (limited to 'krebs/krops.nix')
-rw-r--r--krebs/krops.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/krops.nix b/krebs/krops.nix
index 8d38ed5b0..1f439f622 100644
--- a/krebs/krops.nix
+++ b/krebs/krops.nix
@@ -1,4 +1,4 @@
-{ name }: rec {
+{ name, target ? name }: rec {
krops = ../submodules/krops;
@@ -63,7 +63,7 @@
# 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";
+ target = "root@${target}/var/src";
};
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)