From a855ca5610e5d293658d374f16ca709c5d9085b4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 7 Mar 2024 15:45:26 -0500 Subject: [PATCH] added better amdgpu config for mauville --- hosts/mauville/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index eb29843e..83245e3f 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -27,6 +27,20 @@ options = lib.mkForce "--delete-older-than 14d"; }; + services.xserver.videoDrivers = [ "amdgpu" ]; + hardware.opengl.extraPackages = with pkgs; [ + rocmPackages.clr.icd + ]; + + hardware.opengl.extraPackages = with pkgs; [ + amdvlk + ]; + hardware.opengl.driSupport32Bit = true; + # For 32 bit applications + hardware.opengl.extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; + services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.user = "aly";