home/nixos/networking.nix

15 lines
356 B
Nix
Raw Normal View History

2023-10-21 12:56:02 +02:00
{
pkgs,
2024-06-25 18:07:56 +02:00
use-iwd ? false,
2023-10-21 12:56:02 +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";
};
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
}