nixos-hardware/common/cpu/amd/raphael/igpu.nix

21 lines
674 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
2023-03-26 21:53:18 +00:00
{
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
2023-03-26 21:53:18 +00:00
# Disables scatter/gather which was introduced with kernel version 6.2
# It produces completely white or flashing screens when enabled while using the iGPU of Ryzen 7000-series CPUs (Raphael)
imports = [ ../. ];
boot = lib.mkMerge [
(lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["amdgpu.sg_display=0"];
2023-03-26 21:53:18 +00:00
})
(lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.2") {
kernelParams = ["amdgpu.sg_display=0"];
})
2023-03-26 21:53:18 +00:00
];
}