From c3aa1fae79e684bf0aba290b45c2f688c3ea5af1 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 28 Jun 2022 06:57:34 +0200 Subject: [PATCH] lenovo/thinkpad/x1-extreme/gen4: add module --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/x1-extreme/gen4/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 lenovo/thinkpad/x1-extreme/gen4/default.nix diff --git a/README.md b/README.md index f176912..462912f 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ See code for all available configurations. | [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 X1 Extreme Gen 4](lenovo/thinkpad/x1-extreme/gen4) | `` | | [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga) | `` | | [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `` | | [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `` | diff --git a/flake.nix b/flake.nix index 6db6c5b..06d488c 100644 --- a/flake.nix +++ b/flake.nix @@ -93,6 +93,7 @@ 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-x1-extreme-gen4 = import ./lenovo/thinkpad/x1-extreme/gen4; lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13; lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13/yoga; lenovo-thinkpad-x140e = import ./lenovo/thinkpad/x140e; diff --git a/lenovo/thinkpad/x1-extreme/gen4/default.nix b/lenovo/thinkpad/x1-extreme/gen4/default.nix new file mode 100644 index 0000000..f52fe1e --- /dev/null +++ b/lenovo/thinkpad/x1-extreme/gen4/default.nix @@ -0,0 +1,16 @@ +{ config, lib, ... }: + +{ + imports = [ + ../. + ]; + + # New ThinkPads have a different TrackPoint manufacturer/name. + hardware.trackpoint.device = "TPPS/2 Elan TrackPoint"; + + # Set the right DPI. xdpyinfo says the screen is 677x423 mm but + # it actually is 344×215 mm. + services.xserver.monitorSection = lib.mkDefault '' + DisplaySize 344 215 + ''; +}