From eb86c8a651dc5c32f748c65243dd630e21edb0cb Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 14 Feb 2026 20:23:59 +0100 Subject: [PATCH] remove immich from nfss --- hosts/nixos/nfss/containers.nix | 82 --------------------------------- hosts/nixos/nfss/home.nix | 2 +- hosts/nixos/nfss/system.nix | 3 +- 3 files changed, 2 insertions(+), 85 deletions(-) diff --git a/hosts/nixos/nfss/containers.nix b/hosts/nixos/nfss/containers.nix index 7c42e03..1156827 100644 --- a/hosts/nixos/nfss/containers.nix +++ b/hosts/nixos/nfss/containers.nix @@ -1,10 +1,6 @@ { config, pkgs, lib, ... }: let - immichConfig = import ../../../config/immich.nix; - immichConfigJson = builtins.toJSON immichConfig; - immichConfigFile = pkgs.writeText "immich.json" immichConfigJson; - commonUID = "1000"; commonGID = "100"; systemTZ = config.time.timeZone; @@ -13,83 +9,5 @@ in # Container definitions for nfss host virtualisation.oci-containers.containers = { - # Immich photo and video backup system - immich = { - image = "ghcr.io/imagegenius/immich:latest"; - - volumes = [ - "/var/lib/immich/config:/config" - "/mnt/essd/immich-lib:/photos" - "/mnt/essd/DCIM:/ext-lib:ro" - "${immichConfigFile}:/config/immich.json:ro" - ]; - - environment = { - PUID = commonUID; - PGID = commonGID; - TZ = systemTZ; - # Point to the mounted config file - IMMICH_CONFIG_FILE = "/config/immich.json"; - # Database connection (keep as env vars for security) - DB_HOSTNAME = "immich-db"; - DB_USERNAME = "postgres"; - DB_PASSWORD = "postgres"; - DB_DATABASE_NAME = "postgres"; - DB_PORT = "5432"; - # Redis connection - REDIS_HOSTNAME = "immich-redis"; - REDIS_PORT = "6379"; - # Machine Learning server (internal) - MACHINE_LEARNING_HOST = "0.0.0.0"; - MACHINE_LEARNING_PORT = "3003"; - MACHINE_LEARNING_WORKERS = "1"; - MACHINE_LEARNING_WORKER_TIMEOUT = "120"; - }; - - ports = [ - "8080:8080" - ]; - - extraOptions = [ - "--network=podman" - "--device=/dev/dri:/dev/dri" # Hardware acceleration - ]; - - dependsOn = [ "immich-db" "immich-redis" ]; - autoStart = true; - }; - - # PostgreSQL database for Immich with vector extension - immich-db = { - image = "docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0"; - - volumes = [ - "/var/lib/immich/db:/var/lib/postgresql/data" - ]; - - environment = { - POSTGRES_PASSWORD = "postgres"; - POSTGRES_USER = "postgres"; - POSTGRES_DB = "postgres"; - }; - - extraOptions = [ - "--network=podman" - ]; - - autoStart = true; - }; - - # Redis cache for Immich - immich-redis = { - image = "docker.io/redis:7.2-alpine"; - - extraOptions = [ - "--network=podman" - ]; - - autoStart = true; - }; - }; } diff --git a/hosts/nixos/nfss/home.nix b/hosts/nixos/nfss/home.nix index 7cb41d0..1f8ab83 100644 --- a/hosts/nixos/nfss/home.nix +++ b/hosts/nixos/nfss/home.nix @@ -17,7 +17,7 @@ }; services.scheduled-commands.dcim-consume = { - enable = true; + enable = false; description = "Move files in dcim consume folder to DCIM"; interval = "*-*-* *:00/15:00"; commands = [ diff --git a/hosts/nixos/nfss/system.nix b/hosts/nixos/nfss/system.nix index 62032c5..29637eb 100644 --- a/hosts/nixos/nfss/system.nix +++ b/hosts/nixos/nfss/system.nix @@ -144,10 +144,9 @@ # Borg backup configuration services.borg-client-custom = { - enable = true; + enable = false; repositoryUrl = "ssh://nfss@thinkpad/./"; backupPaths = [ - "/mnt/essd/DCIM" ]; backupFrequency = "*-*-* 01:00:00"; retention = {