From b0ad41a9e7f59d55e05433b27fa7ae2710ba89b0 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 5 Oct 2023 11:37:44 -0700 Subject: [PATCH] Nah forget that --- authoritative-dns.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/authoritative-dns.nix b/authoritative-dns.nix index 31d8488..e3266eb 100644 --- a/authoritative-dns.nix +++ b/authoritative-dns.nix @@ -67,21 +67,16 @@ in { imports = [ ./nsd.nix ]; config = mkIf cfg.enable { - fileSystems."/var/lib/nsd" = { - device = cfg.state-directory; - options = [ "bind" ]; - }; - - services.nsd = { + services.fudo-nsd = { enable = true; identity = cfg.identity; interfaces = cfg.listen-ips; - # stateDirectory = cfg.state-directory; + stateDirectory = cfg.state-directory; zones = mapAttrs' (dom: domCfg: let zoneCfg = domCfg.zone; in nameValuePair "${dom}." { dnssec = domCfg.ksk.key-file != null; - # ksk.keyFile = domCfg.ksk.key-file; + ksk.keyFile = domCfg.ksk.key-file; data = zoneToZonefile cfg.timestamp dom domCfg.zone-definition; }) cfg.domains; };