2020-02-05 11:40:43 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
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.
|
|
|
|
intelBusId = lib.mkDefault "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.
|
|
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
|
|
};
|
2020-02-05 11:40:43 +01:00
|
|
|
}
|