mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 05:12:56 +00:00
14 lines
337 B
Nix
14 lines
337 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
config = lib.mkIf (config.physical && pkgs.stdenv.isLinux) {
|
|
|
|
# Enables wireless support via wpa_supplicant.
|
|
networking.wireless.enable = !config.networking.networkmanager.enable;
|
|
|
|
# Allows the user to control the WiFi settings.
|
|
networking.wireless.userControlled.enable = true;
|
|
|
|
};
|
|
|
|
}
|