diff --git a/hosts/sire/guests/immich.nix b/hosts/sire/guests/immich.nix index 5cc6351..9a804fb 100644 --- a/hosts/sire/guests/immich.nix +++ b/hosts/sire/guests/immich.nix @@ -66,7 +66,7 @@ in backup.database = { cronExpression = "0 02 * * *"; enabled = true; - keepLastAmount = 14; + keepLastAmount = 3; }; ffmpeg = { accel = "disabled"; @@ -151,7 +151,7 @@ in facialRecognition = { enabled = true; maxDistance = 0.5; - minFaces = 2; + minFaces = 3; minScore = 0.65; modelName = "buffalo_l"; }; @@ -204,7 +204,7 @@ in storageTemplate = { enabled = true; hashVerificationEnabled = true; - template = "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}"; + template = "{{y}}/{{y}}-{{MM}}-{{dd}}/{{{filename}}}"; }; theme.customCss = ""; trash = { @@ -266,15 +266,14 @@ in locations."/" = { proxyPass = "http://immich"; proxyWebsockets = true; - extraConfig = ''''; }; extraConfig = '' client_max_body_size 50G; proxy_buffering off; proxy_request_buffering off; - proxy_read_timeout 1200s; - proxy_send_timeout 1200s; - send_timeout 1200s; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + send_timeout 3600s; allow ${globals.net.home-lan.vlans.home.cidrv4}; allow ${globals.net.home-lan.vlans.home.cidrv6}; # Firezone traffic diff --git a/modules/immich.nix b/modules/immich.nix index e8a79be..4a50db3 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -361,6 +361,7 @@ in MACHINE_LEARNING_WORKERS = "1"; MACHINE_LEARNING_WORKER_TIMEOUT = "120"; MACHINE_LEARNING_CACHE_FOLDER = "/var/cache/immich"; + XDG_CACHE_HOME = "/var/cache/immich"; IMMICH_HOST = "localhost"; IMMICH_PORT = "3003"; }; diff --git a/users/myuser/graphical/default.nix b/users/myuser/graphical/default.nix index af5fb3a..491a442 100644 --- a/users/myuser/graphical/default.nix +++ b/users/myuser/graphical/default.nix @@ -5,31 +5,30 @@ ... }: { - imports = - [ - ./discord.nix - ./firefox.nix - ./kitty.nix - ./signal.nix - ./theme.nix - ./thunderbird.nix - ./ts3.nix + imports = [ + ./discord.nix + ./firefox.nix + ./kitty.nix + ./signal.nix + ./theme.nix + ./thunderbird.nix + # ./ts3.nix - # X11 - ./i3.nix - ./flameshot.nix + # X11 + ./i3.nix + ./flameshot.nix - # Wayland - ./gpu-screen-recorder.nix - ./hyprland.nix - ./fuzzel.nix - ./sway.nix - ./swaync.nix - ./waybar.nix - ] - ++ lib.optionals nixosConfig.graphical.gaming.enable [ - ./games - ]; + # Wayland + ./gpu-screen-recorder.nix + ./hyprland.nix + ./fuzzel.nix + ./sway.nix + ./swaync.nix + ./waybar.nix + ] + ++ lib.optionals nixosConfig.graphical.gaming.enable [ + ./games + ]; home = { packages = [