aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-07-16 16:50:32 +0200
committertv <tv@krebsco.de>2022-07-16 16:50:32 +0200
commit9c49e9aa24d7793e2dc99d00e9df04d65851a8ef (patch)
tree7fb8bb95ffad80a898204b7402a9928623ee39c3 /pkgs
parent89e5e67659bbbf0da53cc2cc5dea644b9a2301f6 (diff)
krops writeDeploy: add operation parameter
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/krops/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix
index 7fe8370..63d23dc 100644
--- a/pkgs/krops/default.nix
+++ b/pkgs/krops/default.nix
@@ -49,6 +49,7 @@ in
crossDeploy ? false,
fast ? null,
force ? false,
+ operation ? "switch",
source,
target
}: let
@@ -65,7 +66,7 @@ in
(populate { inherit backup force source; target = buildTarget'; })}
${populate { inherit backup force source; target = target'; }}
${rebuild ([
- "switch"
+ operation
] ++ lib.optionals crossDeploy [
"--no-build-nix"
] ++ lib.optionals (buildTarget' != target') [