enable amdgpu
This commit is contained in:
parent
52a1ee8c30
commit
d6b3d75db8
@ -24,6 +24,11 @@ with config.deviceSpecific; {
|
|||||||
] else [ ];
|
] else [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.amdgpu = lib.mkIf (devInfo.gpu.vendor == "amd") {
|
||||||
|
opencl.enable = true;
|
||||||
|
initrd.enable = config.boot.initrd.systemd.enable;
|
||||||
|
};
|
||||||
|
|
||||||
environment.sessionVariables = if (devInfo.gpu.vendor == "intel") then {
|
environment.sessionVariables = if (devInfo.gpu.vendor == "intel") then {
|
||||||
GST_VAAPI_ALL_DRIVERS = "1";
|
GST_VAAPI_ALL_DRIVERS = "1";
|
||||||
LIBVA_DRIVER_NAME = "iHD";
|
LIBVA_DRIVER_NAME = "iHD";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user