From 7f26288284429e2f186d7dc61de716dbd36ef8c4 Mon Sep 17 00:00:00 2001 From: ene Date: Mon, 20 Feb 2023 01:01:13 +0100 Subject: Feat(flake): Reorder hosts --- hosts/apzu/hardware/gpu.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hosts/apzu/hardware/gpu.nix (limited to 'hosts/apzu/hardware/gpu.nix') diff --git a/hosts/apzu/hardware/gpu.nix b/hosts/apzu/hardware/gpu.nix new file mode 100644 index 00000000..c3df51ae --- /dev/null +++ b/hosts/apzu/hardware/gpu.nix @@ -0,0 +1,15 @@ +{ + 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