fix immich and syncthing

This commit is contained in:
2026-06-12 21:30:20 -05:00
parent e0e298b63f
commit 3283cac3e8
5 changed files with 29 additions and 29 deletions
+24 -23
View File
@@ -81,29 +81,30 @@ in {
#settings.server.externalDomain = "https://photos.blakedheld.xyz";
};
systemd.services.immich_library_sync = {
description = "twice daily sync immich library to holocron";
serviceConfig = {
Type = "oneshot";
User = "root";
};
script = ''
${pkgs.rsync}/bin/rsync -avh --info=progress2 --delete \
--chown=blake:blake \
/var/lib/immich/library/blake/ \
/holocron/users/blake/pictures/library/
'';
};
systemd.timers.immich_library_sync = {
wantedBy = ["timers.target"];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "12h";
Persistent = true;
};
};
# too lazy to add an option, this is on the storage pool now anyway
# systemd.services.immich_library_sync = {
# description = "twice daily sync immich library to holocron";
# serviceConfig = {
# Type = "oneshot";
# User = "root";
# };
#
# script = ''
# ${pkgs.rsync}/bin/rsync -avh --info=progress2 --delete \
# --chown=blake:blake \
# /var/lib/immich/library/blake/ \
# /holocron/users/blake/pictures/library/
# '';
# };
#
# systemd.timers.immich_library_sync = {
# wantedBy = ["timers.target"];
# timerConfig = {
# OnBootSec = "5m";
# OnUnitActiveSec = "12h";
# Persistent = true;
# };
# };
# override umask to make permissions work out
# systemd.services."${toString service}-server".serviceConfig = {