1 {pkgs, lib, config, ...}:
3 inherit (config) networking;
4 inherit (config.services) nsd;
12 environment.systemPackages = [
13 (pkgs.bind.override { enablePython = true; })
22 interfaces = lib.unique [
23 #(builtins.elemAt networking.interfaces."${networking.defaultGateway.interface}".ipv4.addresses 0).address
24 #networking.privateIPv4
27 # SEE: http://www.nlnetlabs.nl/blog/2012/10/11/nsd-ratelimit/
28 ratelimit.enable = true;
29 # 100 less than the default to preserve a few Mio of RAM
30 ratelimit.size = 10000;
31 ratelimit.ratelimit = 200;