diff --git a/nixos/networking.nix b/nixos/networking.nix index 726c695d..269e27d8 100644 --- a/nixos/networking.nix +++ b/nixos/networking.nix @@ -1,10 +1,12 @@ { 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;