move hostname to common because services aren't in darwin

This commit is contained in:
Noah Masur 2024-09-25 16:57:44 -04:00
parent a7adc18463
commit 51bee71faf
No known key found for this signature in database
2 changed files with 4 additions and 7 deletions

View File

@ -137,6 +137,10 @@
type = lib.types.str; type = lib.types.str;
description = "Hostname for push notification services (ntfy)."; description = "Hostname for push notification services (ntfy).";
}; };
status = lib.mkOption {
type = lib.types.str;
description = "Hostname for status page (Uptime-Kuma).";
};
transmission = lib.mkOption { transmission = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "Hostname for peer2peer downloads (Transmission)."; description = "Hostname for peer2peer downloads (Transmission).";

View File

@ -1,13 +1,6 @@
{ config, lib, ... }: { 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 { config = lib.mkIf config.services.uptime-kuma.enable {
services.uptime-kuma = { services.uptime-kuma = {