devos/profiles/amd/default.nix
2021-04-06 20:59:09 +02:00

13 lines
301 B
Nix

{ config, lib, pkgs, ... }:
{
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
}