From 6a8f20960bb7373ae9acb209a6b6615f8766021b Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Wed, 4 Mar 2026 00:37:20 +0100 Subject: [PATCH] nameservers/public: Add option `publicHostName` for use in the ns records --- modules/nixos/services/nameservers/public.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/nameservers/public.nix b/modules/nixos/services/nameservers/public.nix index 702c4e4..fee45f1 100644 --- a/modules/nixos/services/nameservers/public.nix +++ b/modules/nixos/services/nameservers/public.nix @@ -40,7 +40,7 @@ let |> lib.attrValues |> lib.filter (host: host.config.custom.services.public-nameserver.enable) |> lib.map (host: { - name = host.config.custom.networking.hostName; + name = host.config.custom.services.public-nameserver.publicHostName; inherit (host.config.custom.networking.underlay) address; }); in @@ -66,6 +66,10 @@ in { options.custom.services.public-nameserver = { enable = lib.mkEnableOption ""; + publicHostName = lib.mkOption { + type = lib.types.nonEmptyStr; + default = netCfg.hostName; + }; port = lib.mkOption { type = lib.types.port; default = 53;