1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-13 22:49:41 +01:00
nixos-hardware/common/cpu/amd/raphael/igpu.nix
Will Lucas c2f991b91e Added support for Lenovo Legion Slim 5 (16APH8)
Added PPD after researching the Framework laptops with AMD 7000 series
2024-01-02 20:44:50 +00:00

20 lines
674 B
Nix

{ lib, pkgs, ... }:
{
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
# 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"];
})
(lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.2") {
kernelParams = ["amdgpu.sg_display=0"];
})
];
}