2020-07-22 17:16:27 -04:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
2020-07-27 13:00:20 -04:00
|
|
|
../default.nix
|
2020-07-25 23:53:47 -04:00
|
|
|
../../../../common/gpu/nvidia.nix
|
2020-07-22 17:16:27 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
hardware.nvidia.prime = {
|
|
|
|
# Bus ID of the Intel GPU.
|
|
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
|
|
|
|
|
|
# Bus ID of the NVIDIA GPU.
|
|
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
}
|