From ad15529cfba5f8ad9dd5c4c4e396626e1841b5d1 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 6 Oct 2023 09:38:05 -0700 Subject: [PATCH] Oh shit, passing args wrong! --- authoritative-dns.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/authoritative-dns.nix b/authoritative-dns.nix index ab1e59d..e42d986 100644 --- a/authoritative-dns.nix +++ b/authoritative-dns.nix @@ -74,11 +74,16 @@ in { identity = cfg.identity; interfaces = cfg.listen-ips; stateDirectory = cfg.state-directory; - zones = mapAttrs' (dom: domCfg: - nameValuePair "${dom}." { - dnssec = domCfg.ksk.key-file != null; - ksk.keyFile = mkIf (domCfg.ksk.key-file != null) domCfg.ksk.key-file; - data = zoneToZonefile cfg.timestamp dom domCfg.zone; + zones = mapAttrs' (domain: domainCfg: + nameValuePair "${domain}." { + dnssec = domainCfg.ksk.key-file != null; + ksk.keyFile = + mkIf (domainCfg.ksk.key-file != null) domainCfg.ksk.key-file; + data = zoneToZonefile { + inherit domain; + inherit (cfg) timestamp; + inherit (domainCfg) zone; + }; }) cfg.domains; }; };