{ config, pkgs, ... } @ args: { imports = [ "${args.inputs.nixpkgs-master}/nixos/modules/services/web-apps/immich.nix" ]; disabledModules = [ "services/web-apps/immich.nix" ]; services.nginx.virtualHosts."photo.emile.space" = { forceSSL = true; enableACME = true; locations = { "/" = { proxyPass = "http://${config.services.immich.host}:${toString config.services.immich.port}"; }; }; }; services.immich = { enable = true; package = pkgs.unstable.immich; mediaLocation = "/var/lib/immich"; secretsFile = config.age.secrets.immich_secrets_file.path; host = "127.0.0.1"; port = config.emile.ports.immich; # machine-learning = { # enable = true; # environment = { # MACHINE_LEARNING_MODEL_TTL = "600"; # }; # }; }; }