From 51bee71fafbace4c7cc2b97d1408df4522600e41 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:57:44 -0400 Subject: [PATCH] move hostname to common because services aren't in darwin --- modules/common/default.nix | 4 ++++ modules/nixos/services/uptime-kuma.nix | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) 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 = {