From 49cb5fb3d34e718dabd025c6d8162a5a4413b521 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Jun 2021 16:18:18 +0200 Subject: [PATCH] Add L13 Yoga --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/l13-yoga/default.nix | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 lenovo/thinkpad/l13-yoga/default.nix diff --git a/README.md b/README.md index f70a705..24a8d6e 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ See code for all available configurations. | Lenovo ThinkPad E470 | `` | | Lenovo ThinkPad E495 | `` | | Lenovo ThinkPad L13 | `` | +| Lenovo ThinkPad L13 Yoga | `` | | Lenovo ThinkPad L14 (Intel) | ` | | Lenovo ThinkPad L14 (AMD) | ` | | Lenovo ThinkPad P1 | `` | diff --git a/flake.nix b/flake.nix index 5353d26..a7ad2a3 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,7 @@ lenovo-thinkpad-e470 = import ./lenovo/thinkpad/e470; lenovo-thinkpad-e495 = import ./lenovo/thinkpad/e495; lenovo-thinkpad-l13 = import ./lenovo/thinkpad/l13; + lenovo-thinkpad-l13-yoga = import ./lenovo/thinkpad/l13-yoga; lenovo-thinkpad-l14-intel = import ./lenovo/thinkpad/l14/intel; lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd; lenovo-thinkpad-p1 = import ./lenovo/thinkpad/p1; diff --git a/lenovo/thinkpad/l13-yoga/default.nix b/lenovo/thinkpad/l13-yoga/default.nix new file mode 100644 index 0000000..b93e2fb --- /dev/null +++ b/lenovo/thinkpad/l13-yoga/default.nix @@ -0,0 +1,15 @@ +{ nixos, lib, pkgs, config, stdenv, ... }: +{ + imports = [ + ../. + ../../../common/cpu/intel + ../../../common/pc/laptop/acpi_call.nix + ]; + + services.throttled.enable = lib.mkDefault true; + + # automatic screen orientation + hardware.sensor.iio.enable = true; + + services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable; +}