add immich

This commit is contained in:
Gerg-L 2024-12-01 21:32:12 -05:00
parent a2c68fe62d
commit 3a47a82360
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ 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 = false;
settings = null;
port = 2283;
host = "0.0.0.0";
};
}

View file

@ -86,6 +86,11 @@
''; '';
}; };
}; };
"photos.gerg-l.com" = {
forceSSL = true;
useACMEHost = "gerg-l.com";
locations."/".proxyPass = "http://localhost:${toString config.services.immich.port}";
};
}; };
}; };
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [