lenovo/thinkpad/x1-extreme/gen4: add module

This commit is contained in:
Konrad Borowski 2022-06-28 06:57:34 +02:00
parent 78e7c2c397
commit c3aa1fae79
3 changed files with 18 additions and 0 deletions

View file

@ -149,6 +149,7 @@ See code for all available configurations.
| [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` |
| [Lenovo ThinkPad X1 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/9th-gen>` |
| [Lenovo ThinkPad X1 Extreme Gen 2](lenovo/thinkpad/x1-extreme/gen2) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` |
| [Lenovo ThinkPad X1 Extreme Gen 4](lenovo/thinkpad/x1-extreme/gen4) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen4>` |
| [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/lenovo/thinkpad/x13/yoga>` |
| [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `<nixos-hardware/lenovo/thinkpad/x13>` |
| [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `<nixos-hardware/lenovo/thinkpad/x140e>` |

View file

@ -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;

View file

@ -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
'';
}