From de87c6507137dd4ef8a3fe1e2d116d047750ae9b Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 27 Feb 2024 02:32:57 +0300 Subject: [PATCH] AmdGpu : Add AMD_VULKAN_ICD env. --- .config/linux/system/module/AmdGpu.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/linux/system/module/AmdGpu.nix b/.config/linux/system/module/AmdGpu.nix index 095531d..a181abb 100644 --- a/.config/linux/system/module/AmdGpu.nix +++ b/.config/linux/system/module/AmdGpu.nix @@ -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 # ];