Better default for amdgpuBusId

This commit is contained in:
4JX authored and mergify[bot] committed 2024-02-01 10:14:09 +00:00
1 parent ed01236ece
commit cc65e27670
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -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.** **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 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 ## Setup at the time of testing
``` ```
$ nix-info -m $ nix-info -m
+1 -1
View File
@@ -28,7 +28,7 @@
powerManagement.enable = lib.mkDefault true; powerManagement.enable = lib.mkDefault true;
prime = { prime = {
amdgpuBusId = "PCI:6:0:0"; amdgpuBusId = lib.mkDefault "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
}; };
}; };