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"];
|
|
|
|
};
|
|
|
|
|
2025-01-23 20:22:39 +01:00
|
|
|
hardware.graphics.enable = true;
|
2024-04-11 13:16:26 +02:00
|
|
|
|
2025-01-23 20:22:39 +01:00
|
|
|
hardware.opengl = {
|
2024-04-11 13:16:26 +02:00
|
|
|
## radv: an open-source Vulkan driver from freedesktop
|
2024-12-12 13:33:48 +01:00
|
|
|
# driSupport = true;
|
2025-01-23 20:22:39 +01: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
|
|
|
};
|
|
|
|
|
2025-01-23 20:22:39 +01:00
|
|
|
hardware.graphics.enable32Bit = true;
|
|
|
|
|
2024-04-08 20:32:17 +02:00
|
|
|
services.xserver.videoDrivers = ["amdgpu"];
|
|
|
|
}
|