diff options
author | AbĂlio Costa <abmantis@users.noreply.github.com> | 2024-06-03 23:18:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 23:18:34 +0100 |
commit | 79cd2f97383a9527378fb20157c531da12cb551d (patch) | |
tree | 4c8a4cff72b40d124300fd7439ae3a3728cce92c /nixos/modules | |
parent | 73237782f4c35c254b6440627db4fb7894305791 (diff) |
nixos/nvidia-optimus: add nvidia-modeset to blacklist
The nvidia-modeset module is loaded, which in turn pulls in the nvidia module. This makes bbswitch fail to turn off the card since it would be in use by the module.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/hardware/nvidia-optimus.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/nvidia-optimus.nix b/nixos/modules/services/hardware/nvidia-optimus.nix index d53175052c74a..307bc78098d14 100644 --- a/nixos/modules/services/hardware/nvidia-optimus.nix +++ b/nixos/modules/services/hardware/nvidia-optimus.nix @@ -23,7 +23,7 @@ let kernel = config.boot.kernelPackages; in ###### implementation config = lib.mkIf config.hardware.nvidiaOptimus.disable { - boot.blacklistedKernelModules = ["nouveau" "nvidia" "nvidiafb" "nvidia-drm"]; + boot.blacklistedKernelModules = ["nouveau" "nvidia" "nvidiafb" "nvidia-drm" "nvidia-modeset"]; boot.kernelModules = [ "bbswitch" ]; boot.extraModulePackages = [ kernel.bbswitch ]; |