From eabc64290a948aeca298dd3d6d75373e3e914cbd Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sat, 14 Jan 2023 12:57:53 +0100 Subject: update --- 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