From 50066a4d208b83e63d5ebb4bc64e740e78deae59 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Tue, 31 Dec 2024 13:52:57 +0000 Subject: revert toaster --- hosts/toaster/amd.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hosts/toaster/amd.nix (limited to 'hosts/toaster/amd.nix') diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix new file mode 100644 index 0000000..07aa493 --- /dev/null +++ b/hosts/toaster/amd.nix @@ -0,0 +1,16 @@ +{ pkgs, config, ... }: { + boot.initrd.kernelModules = [ "amdgpu" ]; + + hardware.opengl = { + driSupport = true; + driSupport32Bit = true; + extraPackages = with pkgs; [ + rocm-opencl-icd + rocm-opencl-runtime + amdvlk + ]; + extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; + }; +} -- cgit v1.3.1