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