From 0492dd8216377dad6cafe52ec7275fede993e45f Mon Sep 17 00:00:00 2001 From: Mark Karpov Date: Tue, 16 Nov 2021 16:40:15 +0100 Subject: [PATCH] Add a config for the 9th generation of Lenovo Thinkpad X1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This solves lagging noticeable on high-resolution screens. Co-authored-by: Jörg Thalheim --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/x1/9th-gen/default.nix | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 lenovo/thinkpad/x1/9th-gen/default.nix diff --git a/README.md b/README.md index 7e71efb..45c9b7c 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ See code for all available configurations. | [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `` | | [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `` | | [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `` | +| [Lenovo ThinkPad X1 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `` | | [Lenovo ThinkPad X1 Extreme Gen 2](lenovo/thinkpad/x1-extreme/gen2) | `` | | [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `` | | [One-Netbook OneNetbook 4](onenetbook/4) | `` | diff --git a/flake.nix b/flake.nix index deba692..49d2f9d 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,7 @@ lenovo-thinkpad-x1 = import ./lenovo/thinkpad/x1; lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen; lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen; + lenovo-thinkpad-x1-9th-gen = import ./lenovo/thinkpad/x1/9th-gen; lenovo-thinkpad-x1-extreme = import ./lenovo/thinkpad/x1-extreme; lenovo-thinkpad-x1-extreme-gen2 = import ./lenovo/thinkpad/x1-extreme/gen2; lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13; diff --git a/lenovo/thinkpad/x1/9th-gen/default.nix b/lenovo/thinkpad/x1/9th-gen/default.nix new file mode 100644 index 0000000..21987a8 --- /dev/null +++ b/lenovo/thinkpad/x1/9th-gen/default.nix @@ -0,0 +1,11 @@ +{ lib, pkgs, ... }: +{ + imports = [ + ../. + ]; + + # This solves lagging noticeable on high-resolution screens. + boot.kernelPackages = lib.mkIf + (lib.versionOlder pkgs.linux.version "5.15") + (lib.mkDefault pkgs.linuxPackages_latest); +}