From 10d46c7db4028a586be772f279fd9a8f9de41dc5 Mon Sep 17 00:00:00 2001 From: Nexoniarz Date: Wed, 7 Oct 2026 19:16:10 +0200 Subject: [PATCH] Add Radeon Vega 8 iGPU as secondary GPU for compute NVIDIA stays primary for displays; the 5700G iGPU (amdgpu + Mesa RADV) is available for Vulkan compute such as LM Studio. Adds vulkan-tools and amdgpu_top for checking it. Requires the iGPU enabled in BIOS. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- modules/hardware.nix | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 89c032f..b45d6c8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ My personal NixOS system configuration. - **Terminal:** Konsole - **Shell:** Zsh - **Audio:** PipeWire -- **GPU:** NVIDIA (open kernel modules) +- **GPU:** NVIDIA (open kernel modules, primary) + Radeon Vega 8 iGPU (compute) ## Layout diff --git a/modules/hardware.nix b/modules/hardware.nix index 78caad3..9102240 100644 --- a/modules/hardware.nix +++ b/modules/hardware.nix @@ -6,7 +6,17 @@ enable32Bit = true; }; - services.xserver.videoDrivers = [ "nvidia" ]; + # NVIDIA stays primary (monitors are on it); the 5700G's Radeon Vega 8 iGPU + # is a second GPU for compute, e.g. LM Studio's Vulkan runtime. It must be + # enabled in the BIOS (Integrated Graphics = Forced, primary = PEG/PCIe). + # The amdgpu kernel module loads by itself, and hardware.graphics already + # provides Mesa's RADV Vulkan driver for it. + services.xserver.videoDrivers = [ "nvidia" "amdgpu" ]; + + environment.systemPackages = with pkgs; [ + vulkan-tools # vulkaninfo --summary: check both GPUs are visible + amdgpu_top # usage/VRAM monitor for the iGPU + ]; hardware.nvidia = { modesetting.enable = true;