Oh shit, passing args wrong!
This commit is contained in:
parent
a5a9423041
commit
ad15529cfb
|
@ -74,11 +74,16 @@ in {
|
||||||
identity = cfg.identity;
|
identity = cfg.identity;
|
||||||
interfaces = cfg.listen-ips;
|
interfaces = cfg.listen-ips;
|
||||||
stateDirectory = cfg.state-directory;
|
stateDirectory = cfg.state-directory;
|
||||||
zones = mapAttrs' (dom: domCfg:
|
zones = mapAttrs' (domain: domainCfg:
|
||||||
nameValuePair "${dom}." {
|
nameValuePair "${domain}." {
|
||||||
dnssec = domCfg.ksk.key-file != null;
|
dnssec = domainCfg.ksk.key-file != null;
|
||||||
ksk.keyFile = mkIf (domCfg.ksk.key-file != null) domCfg.ksk.key-file;
|
ksk.keyFile =
|
||||||
data = zoneToZonefile cfg.timestamp dom domCfg.zone;
|
mkIf (domainCfg.ksk.key-file != null) domainCfg.ksk.key-file;
|
||||||
|
data = zoneToZonefile {
|
||||||
|
inherit domain;
|
||||||
|
inherit (cfg) timestamp;
|
||||||
|
inherit (domainCfg) zone;
|
||||||
|
};
|
||||||
}) cfg.domains;
|
}) cfg.domains;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue