enable amdgpu

This commit is contained in:
Dmitriy Kholkin 2024-11-18 03:18:47 +03:00
parent 52a1ee8c30
commit d6b3d75db8
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -24,6 +24,11 @@ with config.deviceSpecific; {
] 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 {
GST_VAAPI_ALL_DRIVERS = "1";
LIBVA_DRIVER_NAME = "iHD";