From 055bb037a0f578a7ac10c6608d66f42ce8e86367 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 3 Nov 2023 10:59:11 -0700 Subject: [PATCH] Don't use genAttrs --- authoritative-dns.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authoritative-dns.nix b/authoritative-dns.nix index ef7ec08..82996d7 100644 --- a/authoritative-dns.nix +++ b/authoritative-dns.nix @@ -96,13 +96,13 @@ in { }; }) cfg.domains; reverseZones = concatMapAttrs (domain: domainOpts: - genAttrs domainOpts.reverse-zones (network: + listToAttrs (map (network: reverseZonefile { inherit domain network; inherit (domainOpts.zone) nameservers; ipHostMap = cfg.ip-host-map; serial = cfg.timestamp; - })) cfg.domains; + }) domainOpts.reverse-zones)) cfg.domains; in forwardZones // reverseZones; }; };