Merge pull request #22429 from srhb/fix-bbswitch
bumblebee service: Fix type error when pmMethod = "bbswitch"
This commit is contained in:
commit
d7bc733507
@ -76,7 +76,7 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
boot.blacklistedKernelModules = [ "nvidia-drm" "nvidia" "nouveau" ];
|
boot.blacklistedKernelModules = [ "nvidia-drm" "nvidia" "nouveau" ];
|
||||||
boot.kernelModules = optional useBbswitch [ "bbswitch" ];
|
boot.kernelModules = optional useBbswitch "bbswitch";
|
||||||
boot.extraModulePackages = optional useBbswitch kernel.bbswitch ++ optional useNvidia kernel.nvidia_x11;
|
boot.extraModulePackages = optional useBbswitch kernel.bbswitch ++ optional useNvidia kernel.nvidia_x11;
|
||||||
|
|
||||||
environment.systemPackages = [ bumblebee primus ];
|
environment.systemPackages = [ bumblebee primus ];
|
||||||
|
Loading…
Reference in New Issue
Block a user