1 {pkgs, lib, config, ...}:
3 inherit (config) networking;
4 inherit (config.services) nsd;
17 interfaces = lib.unique [
18 #(builtins.elemAt networking.interfaces."${networking.defaultGateway.interface}".ipv4.addresses 0).address
19 #networking.privateIPv4
22 # SEE: http://www.nlnetlabs.nl/blog/2012/10/11/nsd-ratelimit/
23 ratelimit.enable = true;
24 # 100 less than the default to preserve a few Mio of RAM
25 ratelimit.size = 10000;
26 ratelimit.ratelimit = 200;