Get rid of trace

This commit is contained in:
niten 2023-10-06 07:06:19 -07:00
parent b9840d547c
commit a5a9423041
2 changed files with 2 additions and 4 deletions

View File

@ -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;
};
};

View File

@ -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 == { }