feat(hardware): adjust AMD GPU config
This commit is contained in:
parent
4ebd0c7d24
commit
c7822cdf1b
|
@ -3,29 +3,16 @@
|
||||||
{
|
{
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ];
|
||||||
amdvlk
|
|
||||||
|
|
||||||
vaapiIntel
|
|
||||||
vaapiVdpau
|
|
||||||
libvdpau-va-gl
|
|
||||||
|
|
||||||
rocm-opencl-icd
|
|
||||||
rocm-opencl-runtime
|
|
||||||
];
|
|
||||||
extraPackages32 = with pkgs.driversi686Linux; [
|
extraPackages32 = with pkgs.driversi686Linux; [
|
||||||
amdvlk
|
|
||||||
|
|
||||||
vaapiIntel
|
vaapiIntel
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
environment.systemPackages = with pkgs; [ glxinfo vulkan-tools ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue