diff --git a/NixOS.md b/NixOS.md index 565fb9d..7750bb4 100644 --- a/NixOS.md +++ b/NixOS.md @@ -676,7 +676,7 @@ Usually most of this should work out of the box on NixOS. Vulkan: - Verification: - If `vulkaninfo` returns information about your GPU, Vulkan is working. https://wiki.archlinux.org/title/Vulkan#Verification - - If running `vkcube` (X11) or `vkcube-wayland` (Wayland) views a spinning 3D cube + - Run `vkcube` (X11) or `vkcube-wayland` (Wayland). It should view a spinning 3D cube and output e.g. `Selected GPU 0: AMD Radeon Graphics (RADV RENOIR)` OpenGL: - Verification: https://wiki.archlinux.org/title/OpenGL#Verification diff --git a/hosts/yodaGaming/configuration.nix b/hosts/yodaGaming/configuration.nix index 47e9d48..20181b0 100644 --- a/hosts/yodaGaming/configuration.nix +++ b/hosts/yodaGaming/configuration.nix @@ -48,11 +48,13 @@ # BIOS boot.loader.grub.devices = ["/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF715594P"]; - # Disable onboard Intel GPU + # Disable `i915` (onboard Intel GPU). # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/disable.nix - # https://discourse.nixos.org/t/fully-disabling-the-nvidia-dgpu-on-an-optimus-laptop/29686/6?u=langfingaz + # https://discourse.nixos.org/t/fully-disabling-the-nvidia-dgpu-on-an-optimus-laptop/29686/6 + # Disable `radeon` so that `amdgpu` is used instead. + # https://nixos.wiki/wiki/AMD_GPU#Enable_Southern_Islands_.28SI.29_and_Sea_Islands_.28CIK.29_support boot.blacklistedKernelModules = [ "i915" ]; - boot.kernelParams = [ "i915.modeset=0" ]; + boot.kernelParams = [ "i915.modeset=0" "radeon.si_support=0" "amdgpu.si_support=1" ]; # List all available kernel versions: