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;