mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 03:10:43 +00:00
Fix nvidia on hybrid setups
This commit is contained in:
parent
d1e70957f2
commit
deee4df653
4 changed files with 60 additions and 16 deletions
|
@ -15,12 +15,21 @@ in
|
|||
};
|
||||
|
||||
gpu.type = mkOption {
|
||||
type = with types; nullOr (enum [ "nvidia" "amd" "intel" ]);
|
||||
type = with types; nullOr (enum [ "nvidia" "amd" "intel" "hybrid-nvidia" "hybrid-amd" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
The manifaturer/type of the primary system GPU.
|
||||
|
||||
Allows the correct GPU drivers to be loaded, potentially optimizing video output performance.
|
||||
|
||||
If you're on a hybrid system (intel/amd igpu + nvidia/amd dgpu) make sure to use
|
||||
the hybrid options, only specifying the dgpu will not work properly.
|
||||
|
||||
Note that if using hybrid-nvidia, you will need to set `hardware.nvidia.prime.nvidiaBusId`
|
||||
and `intelBusId` (or `amdgpuBusId`) to "PCI:x:y:z". To find the correct bus IDs, you can
|
||||
use `sudo lshw -c display`. Note that you will need to convert the bus ID format from
|
||||
hexadecimal to decimal, remove the padding (leading zeroes) and replace the dot with a
|
||||
colon (so for example 0e:00.0 -> PCI:14:0:0).
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue