summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-12-29 21:44:21 +0000
committertv <tv@krebsco.de>2019-12-30 14:15:08 +0100
commitea7e0c3a35e94eec5242d9344db9bc4d54056497 (patch)
tree28d3132d3628d9e53fefec2d94a98cc564e2d94f /pkgs
parent402c9cac2595f2219efb8bb51becd337bbcb7965 (diff)
writeDeploy: add crossDeploy argument
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/krops/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix
index 700066e..16ef936 100644
--- a/pkgs/krops/default.nix
+++ b/pkgs/krops/default.nix
@@ -48,6 +48,7 @@ in
writeDeploy = name: {
backup ? false,
buildTarget ? null,
+ crossDeploy ? false,
fast ? false,
force ? false,
source,
@@ -70,6 +71,8 @@ in
''}
${rebuild ([
"switch"
+ ] ++ lib.optionals crossDeploy [
+ "--no-build-nix"
] ++ lib.optionals (buildTarget' != target') [
"--build-host" "${buildTarget'.user}@${buildTarget'.host}"
"--target-host" "${target'.user}@${target'.host}"