From ee1b1d89d86fca09b1dba8bb4cf94659fe952b95 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:51:20 +0530 Subject: [PATCH] feat: move wifi driver blacklist into its own module so you can easily comment it out in the main config --- hosts/default/configuration.nix | 2 +- hosts/default/disable-broken-wifi-card.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 hosts/default/disable-broken-wifi-card.nix diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 59a71e8..f63251b 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix + ./disable-broken-wifi-card.nix ]; # Bootloader. @@ -13,7 +14,6 @@ efi.canTouchEfiVariables = true; }; kernelModules = [ "v4l2loopback" "nvidia_uvm" ]; - blacklistedKernelModules = [ "rtw88_8822ce" ]; extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ]; extraModprobeConfig = '' options v4l2loopback exclusive_caps=1 card_label="Virtual Webcam" diff --git a/hosts/default/disable-broken-wifi-card.nix b/hosts/default/disable-broken-wifi-card.nix new file mode 100644 index 0000000..948d07f --- /dev/null +++ b/hosts/default/disable-broken-wifi-card.nix @@ -0,0 +1,5 @@ +{ + # disable driver for broken internal wifi card + # remove this module if your wifi card works fine + boot.blacklistedKernelModules = [ "rtw88_8822ce" ]; +}