mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
Init Lenovo ThinkPad E14
This commit is contained in:
23
lenovo/thinkpad/e14/amd/default.nix
Normal file
23
lenovo/thinkpad/e14/amd/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ 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;
|
||||
}
|
||||
14
lenovo/thinkpad/e14/default.nix
Normal file
14
lenovo/thinkpad/e14/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/laptop/acpi_call.nix
|
||||
];
|
||||
|
||||
boot.kernelParams = [
|
||||
# Force use of the thinkpad_acpi driver for backlight control.
|
||||
# This allows the backlight save/load systemd service to work.
|
||||
"acpi_backlight=native"
|
||||
];
|
||||
}
|
||||
10
lenovo/thinkpad/e14/intel/default.nix
Normal file
10
lenovo/thinkpad/e14/intel/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../../common/cpu/intel
|
||||
];
|
||||
|
||||
services.throttled.enable = lib.mkDefault true;
|
||||
}
|
||||
Reference in New Issue
Block a user