27 lines
412 B
Nix
27 lines
412 B
Nix
{
|
|
service_configs,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
services.immich = {
|
|
enable = true;
|
|
mediaLocation = service_configs.immich.dir;
|
|
port = service_configs.ports.immich;
|
|
host = "0.0.0.0";
|
|
database = {
|
|
createDB = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
immich-go
|
|
];
|
|
|
|
users.users.${config.services.immich.user}.extraGroups = [
|
|
"video"
|
|
"render"
|
|
];
|
|
}
|