From a04870a342736cd6b33b54e621d37f99b6fa71a2 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 2 Apr 2025 14:40:46 -0300 Subject: [PATCH] chore: update gpu config --- hosts/battleship/gpu-configuration.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/hosts/battleship/gpu-configuration.nix b/hosts/battleship/gpu-configuration.nix index beade75..e89d66d 100644 --- a/hosts/battleship/gpu-configuration.nix +++ b/hosts/battleship/gpu-configuration.nix @@ -1,23 +1,21 @@ -{ - config, - pkgs, - ... -}: { +{pkgs, ...}: { imports = []; + boot.kernelModules = ["amdgpu"]; + boot.initrd.kernelModules = ["amdgpu"]; + + # services.xserver.enable = true; services.xserver.videoDrivers = ["amdgpu"]; environment.variables = { ROC_ENABLE_PRE_VEGA = "1"; }; - boot.kernelModules = ["amdgpu"]; - boot.initrd.kernelModules = ["amdgpu"]; - hardware.graphics.enable = true; + hardware.graphics.enable32Bit = true; hardware.graphics.extraPackages = with pkgs; [ - amdvlk + # OpenCL rocmPackages.clr.icd - vaapiVdpau + clinfo ]; }