mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 07:20: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
|
@ -59,7 +59,7 @@
|
|||
virtual-machine = false;
|
||||
};
|
||||
cpu.type = "amd";
|
||||
gpu.type = "nvidia";
|
||||
gpu.type = "hybrid-nvidia";
|
||||
hasTPM = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -66,4 +66,11 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# Enable prime-offload
|
||||
# This machine has AMD igpu + nvidia dgpu, so we need hybrid
|
||||
hardware.nvidia.prime = {
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue