From c37aed2394f54568f5e3d56a7c61133672422eb8 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Sat, 25 Feb 2023 19:13:22 +0100 Subject: [PATCH] Add NVIDIA config for Dell XPS 15 7590 --- dell/xps/15-7590/nvidia/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 dell/xps/15-7590/nvidia/default.nix diff --git a/dell/xps/15-7590/nvidia/default.nix b/dell/xps/15-7590/nvidia/default.nix new file mode 100644 index 0000000..1ab11ac --- /dev/null +++ b/dell/xps/15-7590/nvidia/default.nix @@ -0,0 +1,15 @@ +{lib, ...}: +{ + imports = [ + ../. + ../../../../common/gpu/nvidia/prime.nix + ]; + + 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"; + }; +}