summaryrefslogtreecommitdiff
path: root/modules/wifi.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-10-02 21:29:37 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-10-02 21:29:37 -0500
commit34b0bb8df42194a0ea433592e3cac27546f0af4e (patch)
treef584369db3a6accb74b1a9288c2480f8fd411671 /modules/wifi.nix
parent4e4b8068825044ebfd435ec8a6f0e84f5c0c8801 (diff)
downloadnixos-34b0bb8df42194a0ea433592e3cac27546f0af4e.tar.xz
nixos-34b0bb8df42194a0ea433592e3cac27546f0af4e.zip
modularize conf and stuff
Diffstat (limited to 'modules/wifi.nix')
-rw-r--r--modules/wifi.nix10
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.
+ };
+}