From cc65e27670abccced5997d4a93c4c930aef6fd0b Mon Sep 17 00:00:00 2001 From: 4JX <79868816+4JX@users.noreply.github.com> Date: Sun, 28 Jan 2024 01:25:14 +0100 Subject: [PATCH] Better default for amdgpuBusId --- lenovo/legion/16ach6h/README.md | 6 ++++++ lenovo/legion/16ach6h/hybrid/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lenovo/legion/16ach6h/README.md b/lenovo/legion/16ach6h/README.md index f8c1190..19f6c24 100644 --- a/lenovo/legion/16ach6h/README.md +++ b/lenovo/legion/16ach6h/README.md @@ -3,6 +3,12 @@ Due to the introduction of DDG feature, you may toggle DDG frequently, so for th **But It will slow down NixOS evaluation by factor 2 and increase memory usage.** So if you don't need specialization feature, you can just use hybrid only configuration or nvidia only (DDG only) configuration +## Using multiple drives with this configuration + +When using more than one drive, the value of `hardware.nvidia.prime.amdgpuBusId` will change from the default of `PCI:5:0:0`. + +Make sure you override this default in your personal configuration. For two drives, it should be `PCI:6:0:0`. + ## Setup at the time of testing ``` $ nix-info -m diff --git a/lenovo/legion/16ach6h/hybrid/default.nix b/lenovo/legion/16ach6h/hybrid/default.nix index 6381e6a..51e10dc 100644 --- a/lenovo/legion/16ach6h/hybrid/default.nix +++ b/lenovo/legion/16ach6h/hybrid/default.nix @@ -28,7 +28,7 @@ powerManagement.enable = lib.mkDefault true; prime = { - amdgpuBusId = "PCI:6:0:0"; + amdgpuBusId = lib.mkDefault "PCI:5:0:0"; nvidiaBusId = "PCI:1:0:0"; }; };