This commit is contained in:
2024-09-26 23:50:15 -04:00
commit 36ae02372c
15 changed files with 623 additions and 0 deletions

26
services/immich.nix Normal file
View File

@@ -0,0 +1,26 @@
{
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"
];
}