tsuki: update immich service

This commit is contained in:
notohh 2025-02-20 13:59:01 -05:00
parent 9001f4b643
commit 25c4539a53
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -7,23 +7,24 @@
services.immich-backup = let
homeDir = "/home/notoh";
in {
enable = true;
wantedBy = ["multi-user.target"];
description = "immich backup service";
script = ''
${lib.getExe pkgs.immich-cli} upload --album-name "screenshots" --recursive ${homeDir}/Pictures/screenshots
${lib.getExe pkgs.immich-cli} upload --album-name "desktop screenshots" --recursive ${homeDir}/Pictures/screenshots
'';
serviceConfig = {
Type = "oneshot";
User = "notoh";
};
environment = {
IMMICH_CONFIG_DIR = "${homeDir}/.config/immich";
};
};
timers.immich-backup = {
enable = true;
wantedBy = ["timers.target"];
description = "immich backup timer";
timerConfig = {
OnCalendar = "*-*-* 00:00:00";
Persistent = true;
Unit = "immich-backup.service";
};
unitConfig = {
Description = "immich backup timer";