chn: xserver drivers to per host basis
This commit is contained in:
1 parent
8f4ad18cc8
commit
b131b2ad3c
5 files changed
+41
-11
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
services.xserver.videoDrivers = lib.mkForce [
|
||||
"nvidia"
|
||||
"amdgpu"
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
reverseSync.enable = true;
|
||||
amdgpuBusId = "PCI:6@0:0:0";
|
||||
nvidiaBusId = "PCI:1@0:0:0";
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
}
|
||||