Oh shit, passing args wrong!

This commit is contained in:
niten 2023-10-06 09:38:05 -07:00
parent a5a9423041
commit ad15529cfb
1 changed files with 10 additions and 5 deletions

View File

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