]> Git — Sourcephile - sourcephile-nix.git/blob - install/logical/spof/nsd.nix
update
[sourcephile-nix.git] / install / logical / spof / nsd.nix
1 {pkgs, lib, config, ...}:
2 let inherit (config.services) nsd;
3 in
4 {
5 config = {
6 services.nsd = {
7 enable = true;
8 ipv4 = true;
9 ipv6 = true;
10 verbosity = 5;
11 # SEE: http://www.nlnetlabs.nl/blog/2012/10/11/nsd-ratelimit/
12 ratelimit.size = 10000;
13 extraConfig = ''
14 '';
15 interfaces = lib.unique [
16 "127.0.0.1"
17 "::1"
18 config.networking.zones.lan.ipv4
19 config.networking.zones.net.ipv4
20 ];
21 zones = import nsd/cologic.coop.nix { inherit pkgs lib config; };
22 };
23 };
24 }