diff --git a/modules/common/default.nix b/modules/common/default.nix index c1c91dd..0ab95b2 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -137,6 +137,10 @@ type = lib.types.str; description = "Hostname for push notification services (ntfy)."; }; + status = lib.mkOption { + type = lib.types.str; + description = "Hostname for status page (Uptime-Kuma)."; + }; transmission = lib.mkOption { type = lib.types.str; description = "Hostname for peer2peer downloads (Transmission)."; diff --git a/modules/nixos/services/uptime-kuma.nix b/modules/nixos/services/uptime-kuma.nix index 7c64da5..8fe8854 100644 --- a/modules/nixos/services/uptime-kuma.nix +++ b/modules/nixos/services/uptime-kuma.nix @@ -1,13 +1,6 @@ { config, lib, ... }: { - options = { - hostnames.status = lib.mkOption { - type = lib.types.str; - description = "Hostname for status page (Uptime-Kuma)."; - }; - }; - config = lib.mkIf config.services.uptime-kuma.enable { services.uptime-kuma = {