mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 21:35:34 +03:00
Update nix flake
This commit is contained in:
@@ -84,8 +84,9 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.photocatalog.enable {
|
config = lib.mkIf config.photocatalog.enable {
|
||||||
environment.systemPackages = [ self.packages.${pkgs.system}.photocatalog ];
|
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}";
|
name = "photocatalog_${sync.name}";
|
||||||
after = [ "local-fs.target" ];
|
after = [ "local-fs.target" ];
|
||||||
path = [
|
path = [
|
||||||
@@ -98,6 +99,7 @@
|
|||||||
script = [
|
script = [
|
||||||
"photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch"
|
"photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user