From bf9e28c5dc2d3776a6b290275ddcfb86e7c6746b Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 18 Sep 2022 03:22:57 +0200 Subject: [PATCH] lib/dns: don't filter for up* --- nix/lib/dns.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nix/lib/dns.nix b/nix/lib/dns.nix index 68a30fe..cd0c042 100644 --- a/nix/lib/dns.nix +++ b/nix/lib/dns.nix @@ -131,9 +131,7 @@ rec { domain = if ctx == "dn42" then "${net}.zentralwerk.dn42" - else if builtins.match "up.*" ctx != null - then namedNets.${net}.domainName - else throw "Invalid IPv6 context: ${ctx}"; + else namedNets.${net}.domainName; in lib.recursiveUpdate result { "${ipv6ToReverse hosts.${host}}" = "${host}.${domain}"; @@ -214,9 +212,7 @@ rec { ns = if ctx == "dn42" then internalNS - else if builtins.match "up.*" ctx != null - then publicNS - else throw "Invalid IPv6 context: ${ctx}"; + else publicNS; records = map (reverse: { name = builtins.substring 0 ((128 - reverseZone6Size) / 2 - 1) reverse;