diff options
Diffstat (limited to '')
-rw-r--r-- | hosts/IDOHVE/gpu.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hosts/IDOHVE/gpu.nix b/hosts/IDOHVE/gpu.nix new file mode 100644 index 00000000..6796d04b --- /dev/null +++ b/hosts/IDOHVE/gpu.nix @@ -0,0 +1,17 @@ +{ + config, + pkgs, + lib, + ... +}: { + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # TODO + + hardware.opengl.extraPackages = with pkgs; [ + rocm-opencl-icd # open-cl + amdvlk # or directly through mesa + amd-media-driver # libva + ]; + + # Force radv, TODO is this logical? + environment.variables.AMD_VULKAN_ICD = "RADV"; +} |