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
+1 -1
View File
@@ -74,8 +74,8 @@
}; };
holocron = { holocron = {
# syncthing.enable = false;
# copyparty.enable = false; # copyparty.enable = false;
syncthing.enable = false;
ensure_perms.enable = false; ensure_perms.enable = false;
zfs.enable = true; zfs.enable = true;
smb.enable = true; smb.enable = true;
+1 -2
View File
@@ -10,12 +10,11 @@
./nfs ./nfs
./smb ./smb
./zfs ./zfs
# ./syncthing ./syncthing
# ./copyparty # ./copyparty
./perms ./perms
]; ];
# define the groups used for backups and archives # define the groups used for backups and archives
users.groups.archives = {gid = 727;}; users.groups.archives = {gid = 727;};
} }
@@ -7,7 +7,7 @@
service = "syncthing"; service = "syncthing";
cfg = config.holocron.${service}; cfg = config.holocron.${service};
sec = config.sops.secrets; sec = config.sops.secrets;
url = "syncthing.${config.netowrking.}.lan"; url = "syncthing.${config.networking.hostName}.blakedheld.xyz";
homelab = config.homelab; homelab = config.homelab;
in { in {
options.holocron.${service} = { options.holocron.${service} = {
@@ -34,7 +34,7 @@ in {
autodetect = true; autodetect = true;
defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)"; defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)";
notifications = { notifications = {
test = false; test = true;
mail = { mail = {
enable = true; enable = true;
recipient = "blake"; recipient = "blake";
+24 -23
View File
@@ -81,29 +81,30 @@ in {
#settings.server.externalDomain = "https://photos.blakedheld.xyz"; #settings.server.externalDomain = "https://photos.blakedheld.xyz";
}; };
systemd.services.immich_library_sync = { # too lazy to add an option, this is on the storage pool now anyway
description = "twice daily sync immich library to holocron"; # systemd.services.immich_library_sync = {
serviceConfig = { # description = "twice daily sync immich library to holocron";
Type = "oneshot"; # serviceConfig = {
User = "root"; # Type = "oneshot";
}; # User = "root";
# };
script = '' #
${pkgs.rsync}/bin/rsync -avh --info=progress2 --delete \ # script = ''
--chown=blake:blake \ # ${pkgs.rsync}/bin/rsync -avh --info=progress2 --delete \
/var/lib/immich/library/blake/ \ # --chown=blake:blake \
/holocron/users/blake/pictures/library/ # /var/lib/immich/library/blake/ \
''; # /holocron/users/blake/pictures/library/
}; # '';
# };
systemd.timers.immich_library_sync = { #
wantedBy = ["timers.target"]; # systemd.timers.immich_library_sync = {
timerConfig = { # wantedBy = ["timers.target"];
OnBootSec = "5m"; # timerConfig = {
OnUnitActiveSec = "12h"; # OnBootSec = "5m";
Persistent = true; # OnUnitActiveSec = "12h";
}; # Persistent = true;
}; # };
# };
# override umask to make permissions work out # override umask to make permissions work out
# systemd.services."${toString service}-server".serviceConfig = { # systemd.services."${toString service}-server".serviceConfig = {