devos/profiles/amd/default.nix

14 lines
301 B
Nix
Raw Permalink Normal View History

2021-04-06 20:59:09 +02:00
{ 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" ];
}