From 31f8d1c36431153b98606e0b0c4427140ab8dc69 Mon Sep 17 00:00:00 2001 From: Paul Jewell Date: Fri, 5 May 2023 06:59:00 +0100 Subject: [PATCH] Added Lenovo Thinkpad x390 --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/x390/default.nix | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 lenovo/thinkpad/x390/default.nix diff --git a/README.md b/README.md index 5da1f79..efc488c 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,7 @@ See code for all available configurations. | [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `` | | [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `` | | [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `` | +| [Lenovo ThinkPad X390](lenovo/thinkpad/x390) | `` | | [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `` | | [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `` | | [LENOVO Yoga 6 13ALC6 82ND](lenovo/yoga/6/13ALC6) | `` | diff --git a/flake.nix b/flake.nix index 8a2f54f..7f38edd 100644 --- a/flake.nix +++ b/flake.nix @@ -131,6 +131,7 @@ lenovo-thinkpad-x260 = import ./lenovo/thinkpad/x260; lenovo-thinkpad-x270 = import ./lenovo/thinkpad/x270; lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280; + lenovo-thinkpad-x390 = import ./lenovo/thinkpad/x390; lenovo-thinkpad-z = import ./lenovo/thinkpad/z; lenovo-thinkpad-z13 = import ./lenovo/thinkpad/z/z13; lenovo-yoga-6-13ALC6 = import ./lenovo/yoga/6/13ALC6; diff --git a/lenovo/thinkpad/x390/default.nix b/lenovo/thinkpad/x390/default.nix new file mode 100644 index 0000000..19a030c --- /dev/null +++ b/lenovo/thinkpad/x390/default.nix @@ -0,0 +1,13 @@ +{ lib, ... }: + +{ + imports = [ + ../. + ../../../common/cpu/intel + ../../../common/pc/laptop/acpi_call.nix + ../../../common/pc/laptop/ssd/default.nix + ]; + + services.throttled.enable = lib.mkDefault true; +} +