mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 11:52:57 +03:00
Update nix flake
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -86,15 +86,15 @@
|
||||
environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ];
|
||||
systemd.services = lib.mapAttrs (_: sync:
|
||||
{
|
||||
name = "photocatalog_${lib.replaceChars ["/"] ["-"] sync.source}";
|
||||
name = "photocatalog_x";
|
||||
after = [ "local-fs.target" ];
|
||||
path = [
|
||||
pkgs.photocatalog
|
||||
];
|
||||
# preStart = if !sync.skipFullSync then ''
|
||||
# mkdir -p ${sync.target}
|
||||
# photocatalog -source ${sync.source} -target ${sync.target}
|
||||
# '' else null;
|
||||
preStart = if !sync.skipFullSync then ''
|
||||
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user