summary refs log tree commit diff
path: root/nixos/modules/hardware/video/bumblebee.nix
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2017-02-04 10:31:40 +0100
committerSarah Brofeldt <sbrofeldt@gmail.com>2017-02-04 10:44:44 +0100
commitac6606fbf4325b50e8bfbf991643d7b3fd6cee37 (patch)
tree4062618a869e10c484051d0f9a1541eb551ad341 /nixos/modules/hardware/video/bumblebee.nix
parentf5db07b158459b00d037a4b6b62cae3db8e2bc13 (diff)
downloadnixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar.gz
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar.bz2
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar.lz
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar.xz
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.tar.zst
nixpkgs-ac6606fbf4325b50e8bfbf991643d7b3fd6cee37.zip
bumblebee service: Fix type error when pmMethod = "bbswitch"
Diffstat (limited to 'nixos/modules/hardware/video/bumblebee.nix')
-rw-r--r--nixos/modules/hardware/video/bumblebee.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/bumblebee.nix b/nixos/modules/hardware/video/bumblebee.nix
index 3ce97ad31c2..fbf3f20885b 100644
--- a/nixos/modules/hardware/video/bumblebee.nix
+++ b/nixos/modules/hardware/video/bumblebee.nix
@@ -76,7 +76,7 @@ in
 
   config = mkIf cfg.enable {
     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;
 
     environment.systemPackages = [ bumblebee primus ];