j krops: extract target to argument of deploy

This commit is contained in:
Jeschli 2019-09-30 08:11:39 +02:00
parent 5a5f899d71
commit 5ac6d30dd2

View File

@ -29,9 +29,9 @@
in {
# usage: $(nix-build --no-out-link --argstr name HOSTNAME -A deploy)
deploy = pkgs.krops.writeDeploy "${name}-deploy" {
deploy = { target ? "root@${name}/var/src" }: pkgs.krops.writeDeploy "${name}-deploy" {
source = source { test = false; };
target = "root@${name}/var/src";
inherit target;
};
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)