From a5a942304138deffec0415a25f9910c5bb190140 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 6 Oct 2023 07:06:19 -0700 Subject: [PATCH] Get rid of trace --- authoritative-dns.nix | 3 +-- nsd.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/authoritative-dns.nix b/authoritative-dns.nix index 8deac2d..ab1e59d 100644 --- a/authoritative-dns.nix +++ b/authoritative-dns.nix @@ -78,8 +78,7 @@ in { nameValuePair "${dom}." { dnssec = domCfg.ksk.key-file != null; ksk.keyFile = mkIf (domCfg.ksk.key-file != null) domCfg.ksk.key-file; - data = let content = zoneToZonefile cfg.timestamp dom domCfg.zone; - in trace content content; + data = zoneToZonefile cfg.timestamp dom domCfg.zone; }) cfg.domains; }; }; diff --git a/nsd.nix b/nsd.nix index 9bda40e..7413f00 100644 --- a/nsd.nix +++ b/nsd.nix @@ -185,8 +185,7 @@ let ${forEach " provide-xfr: " zone.provideXFR} ''; - zoneConfigs = - zoneConfigs' { } "" { children = (trace (attrNames cfg.zones) cfg.zones); }; + zoneConfigs = zoneConfigs' { } "" { children = cfg.zones; }; zoneConfigs' = parent: name: zone: if !(zone ? children) || zone.children == null || zone.children == { }