2020-02-05 10:40:43 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
2024-06-29 00:23:23 +00:00
|
|
|
../../../common/gpu/intel/kaby-lake
|
2020-02-05 10:40:43 +00:00
|
|
|
../../../common/pc/laptop
|
|
|
|
./xps-common.nix
|
2024-01-09 07:27:35 +00:00
|
|
|
|
|
|
|
# FIXME: remove this when bumblebee works again
|
|
|
|
../../../common/gpu/nvidia/disable.nix
|
2020-02-05 10:40:43 +00:00
|
|
|
];
|
|
|
|
|
2024-01-09 07:27:35 +00:00
|
|
|
|
|
|
|
/* Bumblebee seems to fail to evaluate:
|
|
|
|
(stack trace truncated; use '--show-trace' to show the full trace)
|
|
|
|
|
|
|
|
error: assertion '(useSettings -> (! libsOnly))' failed
|
|
|
|
|
|
|
|
at /home/joerg/git/nixpkgs/pkgs/os-specific/linux/nvidia-x11/generic.nix:61:1:
|
|
|
|
|
|
|
|
60|
|
|
|
|
61| assert useSettings -> !libsOnly;
|
|
|
|
| ^
|
|
|
|
62| assert !libsOnly -> kernel != null;
|
|
|
|
|
2020-02-05 10:40:43 +00:00
|
|
|
# This configuration makes intel default and optionaly applications could run nvidia with optirun.
|
|
|
|
# To Optimize for your use case import intel or nvidia only configuration instead
|
|
|
|
# xps-9560/intel
|
|
|
|
# or
|
|
|
|
# xps-9560/nvidia
|
|
|
|
|
|
|
|
|
2024-01-09 07:27:35 +00:00
|
|
|
##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>"
|
|
|
|
services.xserver.videoDrivers = [ "intel" "nvidia" ];
|
|
|
|
boot.blacklistedKernelModules = [ "nouveau" "bbswitch" ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
|
|
|
hardware.bumblebee.enable = lib.mkDefault true;
|
|
|
|
hardware.bumblebee.pmMethod = lib.mkDefault "none";
|
|
|
|
*/
|
2020-02-05 10:40:43 +00:00
|
|
|
}
|