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 <noreply@anthropic.com>
This commit is contained in:
Nexoniarz 2026-10-07 19:16:10 +02:00
commit 10d46c7db4
2 changed files with 12 additions and 2 deletions

View file

@ -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;