diff options
Diffstat (limited to 'modules/wifi.nix')
-rw-r--r-- | modules/wifi.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/wifi.nix b/modules/wifi.nix new file mode 100644 index 0000000..54f9089 --- /dev/null +++ b/modules/wifi.nix @@ -0,0 +1,10 @@ +{ pkgs, lib, config, ... }: { + options = { + wifi.enable = lib.mkEnableOption "enables wifi"; + }; + + config = lib.mkIf config.wifi.enable { + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + }; +} |