Files
nix-config/modules/nixos/services/uptimekuma/default.nix
mjallen18 70002a19e2 hmm
2026-04-07 18:39:42 -05:00

31 lines
523 B
Nix
Executable File

{
config,
lib,
namespace,
...
}:
with lib;
let
name = "uptime-kuma";
cfg = config.${namespace}.services.${name};
uptime-kumaConfig = lib.${namespace}.mkModule {
inherit config name;
description = "uptime kuma";
options = { };
moduleConfig = {
services.uptime-kuma = {
enable = true;
appriseSupport = true;
settings = {
HOST = "0.0.0.0";
PORT = "${toString cfg.port}";
};
};
};
};
in
{
imports = [ uptime-kumaConfig ];
}