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