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

24 lines
504 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = lib.mkDefault [ "amdgpu" ];
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
2021-09-28 17:23:41 +00:00
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
hardware.opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
2022-03-16 16:01:29 +00:00
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
}