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:
@@ -91,13 +91,16 @@
|
|||||||
|
|
||||||
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.mapAttrs' (name: sync: nameValuePair ("photocatalog${lib.replaceStrings ["/"] ["-"] sync.source}")
|
systemd.user.services = lib.mapAttrs' (name: sync: nameValuePair
|
||||||
|
("photocatalog${lib.replaceStrings ["/"] ["-"] sync.source}")
|
||||||
{
|
{
|
||||||
# name = "photocatalog${lib.replaceStrings ["/"] ["-"] sync.source}";
|
|
||||||
after = [ "local-fs.target" ];
|
after = [ "local-fs.target" ];
|
||||||
path = [
|
path = [
|
||||||
self.packages.${pkgs.system}.photocatalog
|
self.packages.${pkgs.system}.photocatalog
|
||||||
];
|
];
|
||||||
|
wantedBy = [
|
||||||
|
"default.target"
|
||||||
|
];
|
||||||
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} -mode ${sync.mode}
|
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode}
|
||||||
|
|||||||
Reference in New Issue
Block a user