mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
lenovo/thinkpad/l14: init
Add support for the Lenovo Thinkpad L14 Gen 1 Intel and AMD variants.
This commit is contained in:
19
lenovo/thinkpad/l14/amd/default.nix
Normal file
19
lenovo/thinkpad/l14/amd/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ 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.
|
||||
"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;
|
||||
}
|
||||
Reference in New Issue
Block a user