mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
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:
parent
15017f8098
commit
10d46c7db4
2 changed files with 12 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ My personal NixOS system configuration.
|
||||||
- **Terminal:** Konsole
|
- **Terminal:** Konsole
|
||||||
- **Shell:** Zsh
|
- **Shell:** Zsh
|
||||||
- **Audio:** PipeWire
|
- **Audio:** PipeWire
|
||||||
- **GPU:** NVIDIA (open kernel modules)
|
- **GPU:** NVIDIA (open kernel modules, primary) + Radeon Vega 8 iGPU (compute)
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,17 @@
|
||||||
enable32Bit = true;
|
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 = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue