nixos/hosts/gerg-desktop/services/immich.nix
Gerg-L 6d187cd057
use switch-to-configuration-ng and nixos-rebuild-ng
migrate secureboot key /etc/secureboot -> /var/lib/sbctl

hardware.pulseaudio -> services.pulseaudio

enable machine-learning for immich
2025-01-13 19:31:19 -05:00

20 lines
492 B
Nix

{ config, ... }:
{
users.users.${config.services.immich.user}.extraGroups = [ "postgres" ];
services.immich = {
enable = true;
openFirewall = true;
database = {
enable = true;
createDB = true;
};
mediaLocation = "/persist/services/immich";
machine-learning.enable = true;
settings = null;
port = 2283;
host = "0.0.0.0";
};
local.nginx.proxyVhosts."photos.gerg-l.com" =
"http://localhost:${toString config.services.immich.port}";
}