mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
20 lines
493 B
Nix
20 lines
493 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 = false;
|
|
settings = null;
|
|
port = 2283;
|
|
host = "0.0.0.0";
|
|
};
|
|
|
|
local.nginx.proxyVhosts."photos.gerg-l.com" =
|
|
"http://localhost:${toString config.services.immich.port}";
|
|
}
|