From a56c58206868dd1766f167ae30bf9cddbce8f8fd Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 7 Jan 2025 22:11:15 +0300 Subject: [PATCH] Add overwrite option to systemd service in flake --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a066525..1080142 100644 --- a/flake.nix +++ b/flake.nix @@ -104,7 +104,7 @@ mkdir -p ${sync.target} photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""} '') else null; - script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}" ++ lib.mkIf sync.overwrite "-overwrite"; + script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}"; serviceConfig = { Type="simple"; Restart="no";