3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #23014 from zraexy/zraexy-bumblebee-pmmethod

bumblebee service: Fix pmMethod bbswitch check
This commit is contained in:
Nikolay Amiantov 2017-02-20 16:18:45 +03:00 committed by GitHub
commit d8fb60d1d4

View file

@ -13,7 +13,7 @@ let
useDisplayDevice = cfg.connectDisplay;
};
useBbswitch = cfg.pmMethod == "bbswitch";
useBbswitch = cfg.pmMethod == "bbswitch" || cfg.pmMethod == "auto" && useNvidia;
primus = pkgs.primus.override {
inherit useNvidia;
@ -65,7 +65,7 @@ in
pmMethod = mkOption {
default = "auto";
type = types.enum [ "auto" "bbswitch" "nouveau" "switcheroo" "none" ];
type = types.enum [ "auto" "bbswitch" "switcheroo" "none" ];
description = ''
Set preferred power management method for unused card.
'';