nixos-config/common/hardware/amd-gpu.nix

23 lines
526 B
Nix
Raw Normal View History

2024-04-11 13:16:26 +02:00
{pkgs, ...}: {
2024-04-08 20:32:17 +02:00
boot = {
initrd.kernelModules = ["amdgpu"];
# params for Sea Islands or smth
kernelParams = ["radeon.cik_support=0" "amdgpu.cik_support=1"];
};
hardware.opengl = {
2024-04-11 13:16:26 +02:00
enable = true;
## radv: an open-source Vulkan driver from freedesktop
driSupport = true;
2024-04-08 20:32:17 +02:00
driSupport32Bit = true;
2024-04-11 13:16:26 +02:00
## amdvlk: an open-source Vulkan driver from AMD
extraPackages = [pkgs.amdvlk];
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
2024-04-08 20:32:17 +02:00
};
services.xserver.videoDrivers = ["amdgpu"];
}