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