feat: move wifi driver blacklist into its own module
so you can easily comment it out in the main config
This commit is contained in:
@@ -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"
|
||||
|
||||
5
hosts/default/disable-broken-wifi-card.nix
Normal file
5
hosts/default/disable-broken-wifi-card.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
# disable driver for broken internal wifi card
|
||||
# remove this module if your wifi card works fine
|
||||
boot.blacklistedKernelModules = [ "rtw88_8822ce" ];
|
||||
}
|
||||
Reference in New Issue
Block a user