2021-03-23 18:34:15 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2022-12-15 22:58:12 +00:00
|
|
|
services.xserver.videoDrivers = lib.mkDefault [ "amdgpu" ];
|
2021-03-23 18:34:15 +00:00
|
|
|
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
rocm-opencl-icd
|
|
|
|
rocm-opencl-runtime
|
|
|
|
amdvlk
|
|
|
|
];
|
|
|
|
|
2021-09-28 17:23:41 +00:00
|
|
|
hardware.opengl.extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.amdvlk
|
|
|
|
];
|
|
|
|
|
2021-03-23 18:34:15 +00:00
|
|
|
hardware.opengl = {
|
|
|
|
driSupport = lib.mkDefault true;
|
|
|
|
driSupport32Bit = lib.mkDefault true;
|
|
|
|
};
|
2022-03-16 16:01:29 +00:00
|
|
|
|
2022-07-02 21:39:55 +00:00
|
|
|
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
|
2021-03-23 18:34:15 +00:00
|
|
|
}
|