From 084ea886194f277741d6d779e6137d09d8ae9b1e Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 21 Dec 2020 17:56:57 +0530 Subject: Fucking fixed the fucking wifi issue and all I had to fucking do was sell my soul to the devil --- hardware-configuration.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 9890cc0..518b633 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -3,16 +3,20 @@ # to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: +#let + #rtl8822ce = pkgs.callPackage ./packages/drivers/rtl8822ce.nix {}; +#in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + boot.kernelPackages = pkgs.linuxPackages_latest; boot.initrd = { - availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "wl" ]; - kernelModules = [ "wl" ]; + availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" ]; + kernelModules = []; }; - boot.kernelModules = ["kvm-intel" "wl"]; + boot.kernelModules = ["kvm-intel" "sd_mod" "rtw88_8822ce"]; boot.kernelParams = [ "i8042.nopnp=1" "pci=nocrs" ]; boot.extraModulePackages = []; boot.extraModprobeConfig = '' @@ -22,7 +26,7 @@ hardware = { enableAllFirmware = true; cpu.intel.updateMicrocode = true; - firmware = with pkgs; [ wireless-regdb ]; + firmware = with pkgs; [ wireless-regdb rtlwifi_new-firmware ]; }; # Bootloader -- cgit v1.3.1