From 25c4539a53ad462fd71e1454c27ca825d3d0a0cc Mon Sep 17 00:00:00 2001 From: notohh <github@notohh.dev> Date: Thu, 20 Feb 2025 13:59:01 -0500 Subject: [PATCH] tsuki: update immich service --- hosts/tsuki/services/immich-backup.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/tsuki/services/immich-backup.nix b/hosts/tsuki/services/immich-backup.nix index 4175bac..23c0425 100644 --- a/hosts/tsuki/services/immich-backup.nix +++ b/hosts/tsuki/services/immich-backup.nix @@ -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";