krebs/krops.nix: add target

This commit is contained in:
makefu 2019-07-08 01:10:56 +02:00
parent 7ca133e90b
commit 0a8475344a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
1 changed files with 2 additions and 2 deletions

View File

@ -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)