Add uptime-kuma module

This commit is contained in:
SebastianStork 2025-06-08 01:43:48 +02:00
parent ab97c76985
commit 7cd535e424

View file

@ -0,0 +1,28 @@
{
config,
lib,
...
}:
let
cfg = config.custom.services.uptimeKuma;
in
{
options.custom.services.uptimeKuma = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 3001;
};
};
config = lib.mkIf cfg.enable {
services.uptime-kuma = {
enable = true;
settings.PORT = toString cfg.port;
};
};
}