fix immich and syncthing
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user