32 lines
731 B
Nix
32 lines
731 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}: {
|
|
hardware = {
|
|
opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
extraPackages = with pkgs; [
|
|
mesa
|
|
amdvlk
|
|
libdrm
|
|
libva
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
];
|
|
extraPackages32 = with pkgs; [
|
|
driversi686Linux.mesa
|
|
driversi686Linux.amdvlk
|
|
driversi686Linux.vaapiVdpau
|
|
driversi686Linux.libvdpau-va-gl
|
|
];
|
|
};
|
|
};
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
environment.sessionVariables = {
|
|
AMD_VULKAN_ICD = "RADV";
|
|
};
|
|
}
|