Just fuckin don't do nothin

This commit is contained in:
niten 2023-10-05 12:16:17 -07:00
parent 8ce5e3b84f
commit b12c284060
1 changed files with 17 additions and 17 deletions

View File

@ -66,24 +66,24 @@ in {
};
};
imports = [ ./nsd.nix ./zone-to-zonefile.nix ];
imports = [ ./nsd.nix ];
config = mkIf cfg.enable {
services.fudo-nsd = {
enable = true;
identity = cfg.identity;
interfaces = cfg.listen-ips;
stateDirectory = cfg.state-directory;
zones = mapAttrs' (dom: domCfg:
let zoneCfg = domCfg.zone;
in nameValuePair "${dom}." {
dnssec = zoneCfg.ksk.key-file != null;
ksk.keyFile =
mkIf (zoneCfg.ksk.key-file != null) zoneCfg.ksk.key-file;
data = let
content = zoneToZonefile cfg.timestamp dom domCfg.zone-definition;
in trace content content;
}) cfg.domains;
};
# services.fudo-nsd = {
# enable = true;
# identity = cfg.identity;
# interfaces = cfg.listen-ips;
# stateDirectory = cfg.state-directory;
# zones = mapAttrs' (dom: domCfg:
# let zoneCfg = domCfg.zone;
# in nameValuePair "${dom}." {
# dnssec = zoneCfg.ksk.key-file != null;
# ksk.keyFile =
# mkIf (zoneCfg.ksk.key-file != null) zoneCfg.ksk.key-file;
# data = let
# content = zoneToZonefile cfg.timestamp dom domCfg.zone-definition;
# in trace content content;
# }) cfg.domains;
# };
};
}