2024-02-15 17:04:34 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
mesa
|
|
|
|
amdvlk
|
|
|
|
libdrm
|
|
|
|
libva
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
2024-03-24 13:38:23 +01:00
|
|
|
rocmPackages.clr.icd
|
2024-02-15 17:04:34 +01:00
|
|
|
];
|
|
|
|
extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.mesa
|
|
|
|
driversi686Linux.amdvlk
|
|
|
|
driversi686Linux.vaapiVdpau
|
|
|
|
driversi686Linux.libvdpau-va-gl
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-02-17 19:56:59 +01:00
|
|
|
|
2024-02-29 01:41:59 +01:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
|
2024-02-17 19:56:59 +01:00
|
|
|
environment.sessionVariables = {
|
|
|
|
AMD_VULKAN_ICD = "RADV";
|
|
|
|
};
|
2024-02-15 17:04:34 +01:00
|
|
|
}
|