2020-02-05 05:40:43 -05:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
2024-06-28 20:23:23 -04:00
|
|
|
../../../common/gpu/intel/kaby-lake
|
2020-02-05 05:40:43 -05:00
|
|
|
../../../common/pc/laptop
|
|
|
|
./xps-common.nix
|
|
|
|
];
|
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
# enable opengpl and gpu drivers
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2024-01-09 02:27:35 -05:00
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
2024-01-09 02:27:35 -05:00
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
hardware.nvidia.modesetting.enable = true;
|
2024-01-09 02:27:35 -05:00
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
hardware.nvidia.prime = {
|
|
|
|
offload = {
|
|
|
|
enable = true;
|
|
|
|
enableOffloadCmd = true; # provides the nvidia-offload command
|
|
|
|
};
|
2024-01-09 02:27:35 -05:00
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
# integrated
|
|
|
|
intelBusId = "PCI:0:2:0";
|
2020-02-05 05:40:43 -05:00
|
|
|
|
2024-07-09 00:02:17 -04:00
|
|
|
# dedicated
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
2020-02-05 05:40:43 -05:00
|
|
|
|
|
|
|
}
|