summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-03-12 04:33:23 +0200
committertzlil <tzlils@protonmail.com>2023-03-12 04:33:23 +0200
commitd04073c5cf6ff18c7ec55bbd66c95467e66f742d (patch)
tree1631065538d30331b1ae25121e4644847d1483f2
parent497ccdd6b1938688f75c1447ebd3ab10156ec889 (diff)
add wifi and enable wireless networking to laptop
-rw-r--r--hosts/laptop/cfg.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index 57fffb8..2458437 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -74,7 +74,19 @@
       algorithm = "zstd";
     };
 
-    networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
+    networking = {
+      interfaces.wlp1s0.useDHCP = lib.mkDefault true;
+      wireless = {
+        enable = true;
+        userControlled.enable = true;
+        networks = {
+          home = {
+            hidden = true;
+            pskRaw = "7bb8bcec7c13f500df1a63928785c98e8fd27bf1fea94f625cfed0ecf2cc5247";
+          };
+        };
+      };
+    };
 
     nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";