2023-08-09 18:38:17 +00:00
|
|
|
{ ... }:
|
2020-02-05 10:40:43 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/intel
|
2022-11-13 01:54:59 +00:00
|
|
|
../../../../common/gpu/nvidia/prime.nix
|
2020-02-05 10:40:43 +00: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-04 22:00:08 +00:00
|
|
|
hardware.nvidia.prime = {
|
|
|
|
# Bus ID of the Intel GPU.
|
2023-08-09 18:38:17 +00:00
|
|
|
intelBusId = "PCI:0:2:0";
|
2020-02-05 10:40:43 +00:00
|
|
|
|
2022-04-04 22:00:08 +00:00
|
|
|
# Bus ID of the NVIDIA GPU.
|
2023-08-09 18:38:17 +00:00
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
2022-04-04 22:00:08 +00:00
|
|
|
};
|
2020-02-05 10:40:43 +00:00
|
|
|
}
|