2024-03-20 22:33:37 +03:00
|
|
|
{ nixpkgs, pkgs, ... }: {
|
2024-03-04 00:34:39 +03:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
|
|
hardware.opengl.driSupport = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
environment.variables.AMD_VULKAN_ICD = "RADV";
|
2024-03-20 22:33:37 +03:00
|
|
|
|
2024-03-04 00:34:39 +03:00
|
|
|
# AMDVLK was broken for me (huge stuttering). So keep it disabled, at least for now.
|
|
|
|
# hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
# amdvlk
|
|
|
|
# ];
|
|
|
|
# hardware.opengl.extraPackages32 = with pkgs; [
|
|
|
|
# driversi686Linux.amdvlk
|
|
|
|
# ];
|
|
|
|
}
|