uptime-kuma: Remove module

This commit is contained in:
SebastianStork 2026-01-23 10:59:34 +01:00
parent 4039f12871
commit a2827a95f2
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -1,30 +0,0 @@
{ config, lib, ... }:
let
cfg = config.custom.web-services.uptime-kuma;
in
{
options.custom.web-services.uptime-kuma = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 44019;
};
};
config = lib.mkIf cfg.enable {
services.uptime-kuma = {
enable = true;
settings.PORT = toString cfg.port;
};
custom = {
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
persistence.directories = [ config.services.uptime-kuma.settings.DATA_DIR ];
};
};
}