1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-07-15 01:00:20 +02:00
nixos-hardware/common/cpu/amd/raphael/igpu.nix

16 lines
439 B
Nix
Raw Normal View History

2023-03-26 23:53:18 +02:00
{ lib, pkgs, ... }:
{
# 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;
2023-03-27 10:34:07 +02:00
kernelParams = ["amdgpu.sg_display=0"];
2023-03-26 23:53:18 +02:00
})
];
}