2020-02-05 05:40:43 -05:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/intel
|
2022-04-04 18:00:08 -04:00
|
|
|
../../../../common/gpu/nvidia.nix
|
2020-02-05 05:40:43 -05: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 18:00:08 -04:00
|
|
|
hardware.nvidia.prime = {
|
|
|
|
# Bus ID of the Intel GPU.
|
|
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
2020-02-05 05:40:43 -05:00
|
|
|
|
2022-04-04 18:00:08 -04:00
|
|
|
# Bus ID of the NVIDIA GPU.
|
|
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
|
|
};
|
2020-02-05 05:40:43 -05:00
|
|
|
}
|