Skip to content

Commit f591065

Browse files
committed
Add Lenovo X13 Yoga Gen 1
1 parent d6a1231 commit f591065

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ There is also experimental flake support. In your `/etc/nixos/flake.nix` add the
5353
You can fetch the git repository directly:
5454

5555
```nix
56-
imports = [
56+
imports = [
5757
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/lenovo/thinkpad/x220"
5858
];
5959
```
6060

61-
Unlike the channel, this will update the git repository on a rebuild. However,
61+
Unlike the channel, this will update the git repository on a rebuild. However,
6262
you can easily pin to a particular revision if you desire more stability.
6363

6464
## List of Profiles
@@ -116,6 +116,7 @@ See code for all available configurations.
116116
| Lenovo ThinkPad T480s | `<nixos-hardware/lenovo/thinkpad/t480s>` |
117117
| Lenovo ThinkPad T490 | `<nixos-hardware/lenovo/thinkpad/t490>` |
118118
| Lenovo ThinkPad T495 | `<nixos-hardware/lenovo/thinkpad/t495>` |
119+
| Lenovo ThinkPad X113 Yoga | `<nixos-hardware/lenovo/thinkpad/x13-yoga>` |
119120
| Lenovo ThinkPad X140e | `<nixos-hardware/lenovo/thinkpad/x140e>` |
120121
| Lenovo ThinkPad X220 | `<nixos-hardware/lenovo/thinkpad/x220>` |
121122
| Lenovo ThinkPad X230 | `<nixos-hardware/lenovo/thinkpad/x230>` |
@@ -156,6 +157,7 @@ See code for all available configurations.
156157
[Inverse Path USB armory]: inversepath/usbarmory
157158
[Lenovo ThinkPad X1 (6th Gen)]: lenovo/thinkpad/x1/6th-gen
158159
[Lenovo ThinkPad X1 (7th Gen)]: lenovo/thinkpad/x1/7th-gen
160+
[Lenovo ThinkPad X13 Yoga]: lenovo/thinkpad/x13-yoga
159161
[Lenovo ThinkPad X260]: lenovo/thinkpad/x260
160162
[Microsoft Surface Pro 3]: microsoft/surface-pro/3
161163
[Raspberry Pi 2]: raspberry-pi/2

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen;
6262
lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen;
6363
lenovo-thinkpad-x1-extreme = import ./lenovo/thinkpad/x1-extreme;
64+
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13-yoga;
6465
microsoft-surface = import ./microsoft/surface;
6566
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
6667
pcengines-apu = import ./pcengines/apu;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{ config, lib, ... }: {
2+
imports = [
3+
../.
4+
../../../common/cpu/intel
5+
../../../common/pc/laptop/acpi_call.nix
6+
../../../common/pc/laptop/ssd
7+
];
8+
9+
# automatic screen orientation
10+
hardware.sensor.iio.enable = true;
11+
12+
services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
13+
}

0 commit comments

Comments
 (0)