{ config, lib, pkgs, ... }: { hardware.opengl.driSupport = true; hardware.opengl.driSupport32Bit = true; hardware.opengl.extraPackages = with pkgs; [ rocm-opencl-icd rocm-opencl-runtime amdvlk ]; hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; boot.initrd.kernelModules = [ "amdgpu" ]; services.xserver.videoDrivers = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; }