diff --git a/nixos/viridian/configuration.nix b/nixos/viridian/configuration.nix index 8d52e07..95c1097 100644 --- a/nixos/viridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -10,7 +10,6 @@ ./services/borgbackup ./services/crowdsec ./services/forgejo - ./services/immich ./services/lighttpd ./services/minecraft ./services/mpd diff --git a/nixos/viridian/services/immich/default.nix b/nixos/viridian/services/immich/default.nix deleted file mode 100644 index 58f1884..0000000 --- a/nixos/viridian/services/immich/default.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ - inputs, - pkgs, - config, - ... -}: { - imports = [ - "${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix" - ]; - - age.secrets.immich = { - rekeyFile = ./secrets.age; - owner = "immich"; - group = "immich"; - }; - - services.immich = { - enable = true; - package = pkgs.unstable.immich; - port = 5489; - host = "0.0.0.0"; - openFirewall = true; - mediaLocation = "/var/lib/immich"; - secretsFile = config.age.secrets.immich.path; - database = { - enable = true; - user = "immich"; - name = "immich"; - }; - environment = { - TZ = "Australia/Perth"; - DB_USERNAME = "immich"; - DB_DATABASE_NAME = "immich"; - }; - }; - - services.traefik.dynamicConfigOptions.http.routers = { - immich = { - rule = "Host(`photos.kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - "internal" - ]; - service = "immich"; - }; - }; - - services.traefik.dynamicConfigOptions.http.services = { - immich.loadBalancer.servers = [ - {url = "http://127.0.0.1:${toString config.services.immich.port}";} - ]; - }; - - environment.persistence."/persist" = { - directories = [ - { - directory = "/var/lib/immich"; - user = "immich"; - group = "immich"; - } - { - directory = "/var/lib/redis-immich"; - user = "immich"; - group = "immich"; - } - ]; - }; -} diff --git a/nixos/viridian/services/immich/secrets.age b/nixos/viridian/services/immich/secrets.age deleted file mode 100644 index dd2fe5a..0000000 --- a/nixos/viridian/services/immich/secrets.age +++ /dev/null @@ -1,9 +0,0 @@ -age-encryption.org/v1 --> piv-p256 hdSnGw Ave/yX17ylsK6RI5ei/oxD58h8nzXisgLiNvs8p7PKd4 -eUz/WZTS3nQ8IyeBZd2/zzW4hjRexuYUuGAiLRFamb4 --> C[:7-grease -tVpdl3Ch ---- wTWoOAjmo0FL1kNZ/6QIMSwA4IV6XQkZLbWobJjnlPY -HÚ’#º-Øth­„î ("ÎI -t-FmšÔƒK•cÿ×F ´SPdBÃ5– -H%LOˆÅØ=½P‚Ì ÿ \ No newline at end of file