diff options
author | Jeschli <jeschli@gmail.com> | 2019-09-30 08:11:39 +0200 |
---|---|---|
committer | Jeschli <jeschli@gmail.com> | 2019-09-30 08:14:22 +0200 |
commit | 5ac6d30dd2b86f58189d179f08cbe97ff938bf7e (patch) | |
tree | 3b76abb5d87aaf13951ae67954c1fda0e27b4f87 /jeschli | |
parent | 5a5f899d715f864c5e97911cbd7e2dc839e79601 (diff) |
j krops: extract target to argument of deploy
Diffstat (limited to 'jeschli')
-rw-r--r-- | jeschli/krops.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jeschli/krops.nix b/jeschli/krops.nix index 30b06c1e6..9a8a76676 100644 --- a/jeschli/krops.nix +++ b/jeschli/krops.nix @@ -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) |