anchor.diff:    stateDir = "/var/lib/nsd";
     pidFile = stateDir + "/var/nsd.pid";
   
  +  # build nsd with the options needed for the given config
     nsdPkg = pkgs.nsd.override {
       bind8Stats = cfg.bind8Stats;
       ipv6 = cfg.ipv6;
  
positive.code:       ipv4-edns-size:      ${toString cfg.ipv4EDNSSize}
        do-ip6:              ${yesOrNo  cfg.ipv6}
        ipv6-edns-size:      ${toString cfg.ipv6EDNSSize}
        log-time-asci:       ${yesOrNo  cfg.logTimeAscii}
        ${maybeString "nsid: " cfg.nsid}
        port:                ${toString cfg.port}
        reuseport:           ${yesOrNo  cfg.reuseport}
  
negative.code:       server-key-file:   "${cfg.remoteControl.serverKeyFile}"
        server-cert-file:  "${cfg.remoteControl.serverCertFile}"
  
      ${concatStrings (mapAttrsToList zoneConfigFile zoneConfigs)}
  
      ${cfg.extraConfig}
  