summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-03-12 06:05:33 +0200
committertzlil <tzlils@protonmail.com>2023-03-12 06:05:33 +0200
commit321fd58925e86f6e8d8b3d311101cc3cef57b9ee (patch)
tree3d55fdd2a021747df436e67445adad8a450d5feb
parentd04073c5cf6ff18c7ec55bbd66c95467e66f742d (diff)
add rtw88 firmware
-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";