From 2c27afc7eda8f35327e9a8b7c6c45f4a9b1d602f Mon Sep 17 00:00:00 2001 From: MayNiklas Date: Sat, 22 Oct 2022 15:35:24 +0200 Subject: [PATCH] add lenovo/thinkpad/x1/yoga/7th-gen --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/x1/yoga/7th-gen/default.nix | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 lenovo/thinkpad/x1/yoga/7th-gen/default.nix diff --git a/README.md b/README.md index 367a613..012e707 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ See code for all available configurations. | [Lenovo ThinkPad T550](lenovo/thinkpad/t550) | `` | | [Lenovo ThinkPad T590](lenovo/thinkpad/t590) | `` | | [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `` | +| [Lenovo ThinkPad X1 Yoga Gen 7](lenovo/thinkpad/x1/yoga/7th-gen/) | `` | | [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `` | | [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `` | | [Lenovo ThinkPad X1 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `` | diff --git a/flake.nix b/flake.nix index 3d0757d..7ce6c90 100644 --- a/flake.nix +++ b/flake.nix @@ -100,6 +100,7 @@ lenovo-thinkpad-t590 = import ./lenovo/thinkpad/t590; lenovo-thinkpad-x1 = import ./lenovo/thinkpad/x1; lenovo-thinkpad-x1-yoga = import ./lenovo/thinkpad/x1/yoga; + lenovo-thinkpad-x1-yoga-7th-gen = import ./lenovo/thinkpad/x1/yoga/7th-gen; lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen; lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen; lenovo-thinkpad-x1-9th-gen = import ./lenovo/thinkpad/x1/9th-gen; diff --git a/lenovo/thinkpad/x1/yoga/7th-gen/default.nix b/lenovo/thinkpad/x1/yoga/7th-gen/default.nix new file mode 100644 index 0000000..d95ad1e --- /dev/null +++ b/lenovo/thinkpad/x1/yoga/7th-gen/default.nix @@ -0,0 +1,14 @@ +{ lib, pkgs, ... }: { + imports = [ + ../. + ../../../../../common/pc/laptop/ssd + ]; + + # This laptop is too new for the kernel currently in nixos-unstable. + # On Kernel 5.15.x, dmesg shows the `hardware is newer than drivers` message. + # When starting the system with 5.15.x, only a tty is being displayed. + # After our tests, at least version 5.19 is required for the system to work properly. + boot.kernelPackages = lib.mkIf + (lib.versionOlder pkgs.linux.version "5.19") + (lib.mkDefault pkgs.linuxPackages_latest); +}