Update nix flake

This commit is contained in:
2025-01-07 20:32:54 +03:00
parent a650096ced
commit cfc318e14b

View File

@@ -86,15 +86,15 @@
environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ]; environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ];
systemd.services = lib.mapAttrs (_: sync: systemd.services = lib.mapAttrs (_: sync:
{ {
name = "photocatalog_${lib.replaceChars ["/"] ["-"] sync.source}"; name = "photocatalog_x";
after = [ "local-fs.target" ]; after = [ "local-fs.target" ];
path = [ path = [
pkgs.photocatalog pkgs.photocatalog
]; ];
# preStart = if !sync.skipFullSync then '' preStart = if !sync.skipFullSync then ''
# mkdir -p ${sync.target} mkdir -p ${sync.target}
# photocatalog -source ${sync.source} -target ${sync.target} photocatalog -source ${sync.source} -target ${sync.target}
# '' else null; '' else null;
script = "photocatalog"; script = "photocatalog";
scriptArgs = "-source ${sync.source} -target ${sync.target} -skip-full-sync -watch"; scriptArgs = "-source ${sync.source} -target ${sync.target} -skip-full-sync -watch";
} }