From 3be92806b160438dc0995bbdf3b94d40cc28883e Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 7 Jan 2025 22:10:31 +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 fab84bc..a066525 100644 --- a/flake.nix +++ b/flake.nix @@ -102,7 +102,7 @@ ]; preStart = if !sync.skipFullSync then ('' mkdir -p ${sync.target} - photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${lib.mkIf sync.overwrite "-overwrite"} + 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"; serviceConfig = {