home/nixos/networking.nix
2024-06-25 18:07:56 +02:00

15 lines
356 B
Nix

{
pkgs,
use-iwd ? false,
}:
{
networking.networkmanager = {
enable = true;
dhcp = "dhcpcd";
wifi.backend = if use-iwd then "iwd" else "wpa_supplicant";
};
networking.nameservers = [ "8.8.8.8" ];
networking.resolvconf.enable = true;
networking.resolvconf.dnsExtensionMechanism = false; # edns seems to be fucky with this enabled
}