AmdGpu : Add AMD_VULKAN_ICD env.

This commit is contained in:
Dmitry Voronin 2024-02-27 02:32:57 +03:00
parent a52ab9e6ad
commit de87c65071

View file

@ -1,8 +1,10 @@
{ pkgs, ... }: {
{ pkgs, environment, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true;
environment.variables.AMD_VULKAN_ICD = "RADV";
# AMDVLK was broken for me (huge stuttering). So keep it disabled, at least for now.
# hardware.opengl.extraPackages = with pkgs; [
# amdvlk
# ];