1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-30 13:39:45 +01:00
nixos-hardware/lenovo/thinkpad/e14/amd/default.nix
2021-08-19 12:15:46 +02:00

23 lines
765 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../../common/cpu/amd
];
boot.kernelParams = [
# With BIOS version 1.12 and the IOMMU enabled, the amdgpu driver
# either crashes or is not able to attach to the GPU depending on
# the kernel version. I've seen no issues with the IOMMU disabled.
#
# BIOS version 1.13 claims to fix IOMMU issues, but we leave the
# IOMMU off to avoid a sad experience for those people that drew
# the short straw when they bought their laptop.
"iommu=off"
];
# As of writing this, Linux 5.8 is the oldest kernel that is still
# supported and has decent Renoir support.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest;
}