2023-08-09 20:38:17 +02:00
|
|
|
{ ... }:
|
2020-02-05 11:40:43 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/intel
|
2022-11-13 02:54:59 +01:00
|
|
|
../../../../common/gpu/nvidia/prime.nix
|
2020-02-05 11:40:43 +01:00
|
|
|
../../../../common/pc/laptop
|
|
|
|
../xps-common.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
# This runs only nvidia, great for games or heavy use of render applications
|
|
|
|
|
|
|
|
##### disable intel, run nvidia only and as default
|
2022-04-05 00:00:08 +02:00
|
|
|
hardware.nvidia.prime = {
|
|
|
|
# Bus ID of the Intel GPU.
|
2023-08-09 20:38:17 +02:00
|
|
|
intelBusId = "PCI:0:2:0";
|
2020-02-05 11:40:43 +01:00
|
|
|
|
2022-04-05 00:00:08 +02:00
|
|
|
# Bus ID of the NVIDIA GPU.
|
2023-08-09 20:38:17 +02:00
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
2022-04-05 00:00:08 +02:00
|
|
|
};
|
2020-02-05 11:40:43 +01:00
|
|
|
}
|