manatee: Add immich module

This commit is contained in:
Alexander Heldt
2025-05-06 16:56:51 +00:00
parent 7bca2c9135
commit 9f37b19502
2 changed files with 36 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ in
transmission.enable = true; transmission.enable = true;
audiobookshelf.enable = true; audiobookshelf.enable = true;
immich.enable = true;
}; };
}; };
} }

View File

@@ -0,0 +1,35 @@
{ lib, config, ... }:
let
enabled = config.mod.immich.enable;
in
{
options = {
mod.immich = {
enable = lib.mkEnableOption "Enable immich module";
};
};
config = lib.mkIf enabled {
users.users.immich = {
isSystemUser = true;
group = "storage";
extraGroups = [
"render"
"video"
];
};
services.immich = {
enable = true;
user = "immich";
group = "storage";
host = "0.0.0.0";
mediaLocation = "/mnt/cameras/public";
accelerationDevices = [ "/dev/dri/renderD128" ];
};
};
}