mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 20:46:24 +03:00
Update nix flake
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -77,6 +77,13 @@
|
||||
Do not make full sync.
|
||||
'';
|
||||
};
|
||||
mode = mkOption {
|
||||
type = types.str;
|
||||
default = "hardlink";
|
||||
description = ''
|
||||
Organization mode, one of [ hardlink symlink move copy ].
|
||||
'';
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
@@ -95,8 +102,7 @@
|
||||
mkdir -p ${sync.target}
|
||||
photocatalog -source ${sync.source} -target ${sync.target}
|
||||
'' else null;
|
||||
script = "photocatalog";
|
||||
scriptArgs = "-source ${sync.source} -target ${sync.target} -skip-full-sync -watch";
|
||||
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}";
|
||||
serviceConfig = {
|
||||
Type="simple";
|
||||
Restart="no";
|
||||
|
||||
Reference in New Issue
Block a user