diff options
-rw-r--r-- | pkgs/krops/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix index 85bf88c..13de4ce 100644 --- a/pkgs/krops/default.nix +++ b/pkgs/krops/default.nix @@ -30,6 +30,21 @@ in ]; }; + writeCommand = name: { + command ? (targetPath: "echo ${targetPath}"), + backup ? false, + force ? false, + source, + target + }: let + target' = lib.mkTarget target; + in + writeDash name '' + set -efu + ${populate { inherit backup force source; target = target'; }} + ${remoteCommand target' (command target'.path)} + ''; + writeDeploy = name: { backup ? false, fast ? false, |