# Without this, systemd-resolved will send DNS requests for <X>.home.arpa to the per-link DNS server (172.16.0.1) which does not support DNS-over-TLS. This leads to the connection hanging and timing out. This causes firefox startup to take an extra 10+ seconds.
#
# Test with: drill @127.0.0.53 odo.home.arpa
# TODO: The 127.0.0.1 address should probably be moved to a host-specific file.
networking.extraHosts=''
127.0.0.1${config.networking.hostName}.home.arpa
127.0.0.3metadata.google.internal
10.216.1.32homeserver
fdfd:5e8a:ee2d::1:32homeserver
10.216.1.6media
10.216.1.12odo
fdfd:5e8a:ee2d::1:2odo
10.216.1.14neelix
10.216.1.15quark
fdfd:5e8a:ee2d::1:3quark
10.217.1.1drmario
10.217.2.1mrmanager
fdfd:5e8a:ee2d::2:2mrmanager
172.16.16.1unifi
172.16.16.231plug1
172.16.16.232plug2
172.16.16.233plug3
172.16.16.234plug4
172.16.16.235temperature1
172.16.16.236temperature2
172.16.16.245turtle
172.16.16.250sauna
172.16.16.251stream
'';
environment.systemPackages=withpkgs;[
iw
ldns# for drill
arp-scan# To find devices on the network
wavemon
dhcpcd# For Android USB tethering.
next_hop
];
boot.extraModprobeConfig=''
# Set wifi to US
optionscfg80211ieee80211_regdom=US
'';
boot.kernel.sysctl={
# Enable TCP packetization-layer PMTUD when an ICMP black hole is detected.
"net.ipv4.tcp_mtu_probing"=1;
# Switch to bbr tcp congestion control which should be better on lossy connections like bad wifi.
# We set this in the kernel config, but include this here for unoptimized builds.
"net.ipv4.tcp_congestion_control"="bbr";
# Don't do a slow start after a connection has been idle for a single RTO.
"net.ipv4.tcp_slow_start_after_idle"=0;
# 3x time to accumulate filesystem changes before flushing to disk.