2021-04-06 20:59:09 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
hardware.opengl.driSupport = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
rocm-opencl-icd
|
|
|
|
rocm-opencl-runtime
|
|
|
|
amdvlk
|
|
|
|
];
|
2023-02-08 13:25:03 +01:00
|
|
|
hardware.opengl.extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.amdvlk
|
|
|
|
];
|
2021-04-06 20:59:09 +02:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-02-08 13:25:03 +01:00
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
2021-04-06 20:59:09 +02:00
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
}
|