summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/laptop/cfg.nix32
1 files changed, 19 insertions, 13 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index 2458437..65115ab 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -32,6 +32,7 @@
       };
       kernelModules = ["kvm-intel"];
       kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
+      extraModulePackages = [ pkgs.linuxPackages_latest.rtw88-firmware ];
       kernelParams = [
         "console=ttyS0"
         "init_on_free=1"
@@ -74,19 +75,24 @@
       algorithm = "zstd";
     };
 
-    networking = {
-      interfaces.wlp1s0.useDHCP = lib.mkDefault true;
-      wireless = {
-        enable = true;
-        userControlled.enable = true;
-        networks = {
-          home = {
-            hidden = true;
-            pskRaw = "7bb8bcec7c13f500df1a63928785c98e8fd27bf1fea94f625cfed0ecf2cc5247";
-          };
-        };
-      };
-    };
+    networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
+    networking.networkmanager.enable = true;
+    environment.persistence."/nix/persist".directories = ["/etc/NetworkManager/system-connections"];
+
+    # networking = {
+    #   networkmanager.unmanaged = ["wlp1s0"];
+    #   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";