2024-12-20 22:37:44 -05:00
{
config ,
lib ,
pkgs ,
. . .
} :
2024-12-17 15:26:10 -05:00
{
2024-12-20 22:37:44 -05:00
imports = [ ] ;
2024-12-17 15:26:10 -05:00
networking . dhcpcd . enable = false ;
networking . useDHCP = false ;
2024-12-20 22:37:44 -05:00
networking . nameservers = [
" 1 9 4 . 2 4 2 . 2 . 2 # d o h . m u l l v a d . n e t "
" 2 a 0 7 : e 3 4 0 : : 2 # d o h . m u l l v a d . n e t "
] ;
2024-12-17 15:26:10 -05:00
services . resolved = {
enable = true ;
dnssec = " t r u e " ;
domains = [ " ~ . " ] ;
fallbackDns = [ ] ;
dnsovertls = " t r u e " ;
} ;
2024-12-20 21:06:04 -05:00
# 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 anging and timing out. This causes firefox startup to take an extra 10+ seconds.
#
# Test with: drill @127.0.0.53 odo.home.arpa
networking . extraHosts = " 1 2 7 . 0 . 0 . 1 o d o . h o m e . a r p a " ;
2024-12-17 15:26:10 -05:00
networking . wireless . iwd = {
enable = true ;
settings = {
General = {
EnableNetworkConfiguration = true ;
AddressRandomization = " n e t w o r k " ;
2024-12-19 22:20:55 -05:00
ControlPortOverNL80211 = false ;
2024-12-17 15:26:10 -05:00
} ;
} ;
} ;
environment . systemPackages = with pkgs ; [
iw
iwd
2024-12-20 21:06:04 -05:00
ldns # for drill
2024-12-25 09:13:34 -05:00
arp-scan # To find devices on the network
2024-12-17 15:26:10 -05:00
] ;
}