2023-10-21 12:56:02 +02:00
|
|
|
{
|
2024-06-23 22:43:00 +02:00
|
|
|
pkgs,
|
2024-06-25 18:07:56 +02:00
|
|
|
use-iwd ? false,
|
2023-10-21 12:56:02 +02:00
|
|
|
}:
|
2024-06-23 22:43:00 +02:00
|
|
|
{
|
2024-06-25 18:03:54 +02:00
|
|
|
networking.networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
dhcp = "dhcpcd";
|
2024-06-25 18:07:56 +02:00
|
|
|
wifi.backend = if use-iwd then "iwd" else "wpa_supplicant";
|
2024-06-25 18:03:54 +02:00
|
|
|
};
|
2024-06-23 22:43:00 +02:00
|
|
|
networking.nameservers = [ "8.8.8.8" ];
|
|
|
|
networking.resolvconf.enable = true;
|
|
|
|
networking.resolvconf.dnsExtensionMechanism = false; # edns seems to be fucky with this enabled
|
2023-10-21 12:56:02 +02:00
|
|
|
}
|