From 871d3f95963eac25765427ecca9a8e4812071439 Mon Sep 17 00:00:00 2001 From: ene Date: Wed, 1 Feb 2023 21:33:11 +0100 Subject: Feat: Split the config apart --- hosts/IDOHVE/hardware/gpu.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hosts/IDOHVE/hardware/gpu.nix (limited to 'hosts/IDOHVE/hardware/gpu.nix') diff --git a/hosts/IDOHVE/hardware/gpu.nix b/hosts/IDOHVE/hardware/gpu.nix new file mode 100644 index 00000000..49197c2b --- /dev/null +++ b/hosts/IDOHVE/hardware/gpu.nix @@ -0,0 +1,16 @@ +{ + config, + pkgs, + lib, + ... +}: { + + 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"; +} -- cgit 1.4.1