dotfiles/modules/nixos/hardware/wifi.nix

18 lines
343 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2023-01-21 14:29:03 +00:00
config = lib.mkIf (config.physical && pkgs.stdenv.isLinux) {
2022-05-29 17:44:45 +00:00
2022-12-21 21:18:03 +00:00
# Enables wireless support via wpa_supplicant.
networking.wireless.enable = !config.networking.networkmanager.enable;
2022-12-21 21:18:03 +00:00
# Allows the user to control the WiFi settings.
networking.wireless.userControlled.enable = true;
};
}