15 lines
356 B
Nix
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
|
|
}
|