manatee: Add komga module

This commit is contained in:
Alexander Heldt
2026-01-03 13:51:02 +00:00
parent e8fcf8102c
commit 06f82d2778
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{ lib, config, ... }:
let
enabled = config.mod.komga.enable;
in
{
options = {
mod.komga = {
enable = lib.mkEnableOption "Enable komga module";
};
};
config = lib.mkIf enabled {
users.users.komga = {
isSystemUser = true;
group = "storage";
};
services.komga = {
enable = true;
user = "komga";
group = "storage";
settings.server.port = 8002;
openFirewall = true;
};
};
}