From 87fc2a2db8f4e4cfb93d44674a44171961950dac Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 8 Oct 2024 07:07:25 +0100 Subject: [PATCH] Vanguard: enable ROCM/OpenCl support --- system/Vanguard.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/Vanguard.nix b/system/Vanguard.nix index 88456e0b..edd987c3 100644 --- a/system/Vanguard.nix +++ b/system/Vanguard.nix @@ -6,6 +6,7 @@ }: { imports = [ ./desktop.nix ]; + nixpkgs.config.rocmSupport = true; environment.sessionVariables.MANGOHUD = 1; home-manager.users.${username} = { home.packages = with pkgs; [ @@ -58,7 +59,10 @@ ''; }; hardware = { - amdgpu.initrd.enable = true; + amdgpu = { + initrd.enable = true; + opencl.enable = true; + }; opengl = { enable = true; driSupport = true;