mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 21:35:34 +03:00
Compare commits
3 Commits
a56c582068
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e66070383f | |||
| 438cd3d86f | |||
| 0cf9b85787 |
@@ -77,7 +77,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
mode = mkOption {
|
mode = mkOption {
|
||||||
type = types.str;
|
type = types.enum [ "hardlink" "symlink" "move" "copy" ];
|
||||||
default = "hardlink";
|
default = "hardlink";
|
||||||
description = ''
|
description = ''
|
||||||
Organization mode, one of [ hardlink symlink move copy ].
|
Organization mode, one of [ hardlink symlink move copy ].
|
||||||
@@ -100,10 +100,11 @@
|
|||||||
wantedBy = [
|
wantedBy = [
|
||||||
"default.target"
|
"default.target"
|
||||||
];
|
];
|
||||||
preStart = if !sync.skipFullSync then (''
|
preStart = ''
|
||||||
mkdir -p ${sync.target}
|
mkdir -p ${sync.target}
|
||||||
|
'' + (if !sync.skipFullSync then (''
|
||||||
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} ${if sync.overwrite then "-overwrite" else ""}";
|
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user