Update nix flake

This commit is contained in:
2025-01-07 17:38:23 +03:00
parent b0cd8bdefa
commit 882d596aa7

View File

@@ -84,8 +84,9 @@
config = lib.mkIf config.photocatalog.enable {
environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ];
systemd.services = lib.genAttrs config.photocatalog (sync:
systemd.services = lib.genAttrs config.photocatalog.syncs (sync:
{
${sync.name} = {
name = "photocatalog_${sync.name}";
after = [ "local-fs.target" ];
path = [
@@ -98,6 +99,7 @@
script = [
"photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch"
];
};
}
);
};