2020-02-05 11:40:43 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
2023-08-09 20:38:17 +02:00
|
|
|
../../../common/cpu/intel/kaby-lake
|
2020-02-05 11:40:43 +01:00
|
|
|
../../../common/pc/laptop
|
|
|
|
./xps-common.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>"
|
2023-08-08 20:04:08 +02:00
|
|
|
services.xserver.videoDrivers = [ "intel" "nvidia" ];
|
|
|
|
boot.blacklistedKernelModules = [ "nouveau" "bbswitch" ];
|
|
|
|
boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ];
|
2020-02-05 11:40:43 +01:00
|
|
|
hardware.bumblebee.enable = lib.mkDefault true;
|
|
|
|
hardware.bumblebee.pmMethod = lib.mkDefault "none";
|
|
|
|
|
|
|
|
}
|