Option to use iwd

This commit is contained in:
xenia 2024-06-25 18:07:56 +02:00
parent 858ea8b16b
commit f2e594275e

View File

@ -1,10 +1,12 @@
{ {
pkgs, pkgs,
use-iwd ? false,
}: }:
{ {
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
dhcp = "dhcpcd"; dhcp = "dhcpcd";
wifi.backend = if use-iwd then "iwd" else "wpa_supplicant";
}; };
networking.nameservers = [ "8.8.8.8" ]; networking.nameservers = [ "8.8.8.8" ];
networking.resolvconf.enable = true; networking.resolvconf.enable = true;