From a806c6776ea19ec068b7a60fde211310fd41d156 Mon Sep 17 00:00:00 2001 From: ene Date: Wed, 1 Feb 2023 20:22:29 +0100 Subject: Initial commit --- hosts/IDOHVE/gpu.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hosts/IDOHVE/gpu.nix (limited to 'hosts/IDOHVE/gpu.nix') 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"; +} -- cgit 1.4.1