{ ... }: {
boot = {
blacklistedKernelModules = [ "nouveau" "nvidia" ];
kernelModules = [ "bbswitch" ];
kernelParams = [
# https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-333313341
# "acpi_rev_override=5"
"acpi_osi=!" ''acpi_osi="Windows 2009"''
"nvidia-drm.modeset=1"
];
};
hardware.bumblebee = {
enable = true;
driver = "nvidia";
group = "users";
};
}
|