From d6b3d75db87ad45563c3e985580a3f94c7145221 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Mon, 18 Nov 2024 03:18:47 +0300 Subject: [PATCH] enable amdgpu --- profiles/hardware.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/hardware.nix b/profiles/hardware.nix index 7248fe9..b6d8717 100644 --- a/profiles/hardware.nix +++ b/profiles/hardware.nix @@ -24,6 +24,11 @@ with config.deviceSpecific; { ] else [ ]; }; + hardware.amdgpu = lib.mkIf (devInfo.gpu.vendor == "amd") { + opencl.enable = true; + initrd.enable = config.boot.initrd.systemd.enable; + }; + environment.sessionVariables = if (devInfo.gpu.vendor == "intel") then { GST_VAAPI_ALL_DRIVERS = "1"; LIBVA_DRIVER_NAME = "iHD";