23 lines
528 B
Nix
23 lines
528 B
Nix
{pkgs, ...}: {
|
|
boot = {
|
|
initrd.kernelModules = ["amdgpu"];
|
|
|
|
# params for Sea Islands or smth
|
|
kernelParams = ["radeon.cik_support=0" "amdgpu.cik_support=1"];
|
|
};
|
|
|
|
hardware.opengl = {
|
|
enable = true;
|
|
|
|
## radv: an open-source Vulkan driver from freedesktop
|
|
# driSupport = true;
|
|
driSupport32Bit = true;
|
|
|
|
## amdvlk: an open-source Vulkan driver from AMD
|
|
extraPackages = [pkgs.amdvlk];
|
|
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
|
};
|
|
|
|
services.xserver.videoDrivers = ["amdgpu"];
|
|
}
|