Files
dotfiles/system/networking.nix
Simon Gardling 543930921f networking: fix in-flight wifi (dns)
Fixes issue on in-flight wifi where I cannot access the login page.

Turns out, `insertNameservers` goes before the delta wifi nameserver,
this prevents `wifi.delta.com` from being resolved. So I need to use
`appendNameservers` instead.
2026-03-21 12:13:06 -04:00

27 lines
495 B
Nix

{ hostname, ... }:
{
# speed up boot times (by about three seconds)
systemd.services.NetworkManager-wait-online.enable = false;
networking = {
hostName = hostname;
networkmanager = {
enable = true;
appendNameservers = [
"1.1.1.1"
"9.9.9.9"
];
wifi = {
scanRandMacAddress = true;
# fix suspend issue
# powersave = false;
};
ensureProfiles.profiles = import ./secrets/wifi-passwords.nix;
};
};
}