mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 21:35:34 +03:00
Add overwrite option to systemd service in flake
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
mkdir -p ${sync.target}
|
mkdir -p ${sync.target}
|
||||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}
|
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}
|
||||||
'') else null;
|
'') 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 = {
|
serviceConfig = {
|
||||||
Type="simple";
|
Type="simple";
|
||||||
Restart="no";
|
Restart="no";
|
||||||
|
|||||||
Reference in New Issue
Block a user