From 34b0bb8df42194a0ea433592e3cac27546f0af4e Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Wed, 2 Oct 2024 21:29:37 -0500 Subject: modularize conf and stuff --- modules/wifi.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/wifi.nix (limited to 'modules/wifi.nix') 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. + }; +} -- cgit v1.2.3