From 1cf38622653249a4b5f843107f6b4b3d29e41463 Mon Sep 17 00:00:00 2001 From: Markus Kohlhase Date: Tue, 13 Sep 2022 12:20:25 +0200 Subject: [PATCH] Add lenovo/thinkpad/p16s/amd/gen1 --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/p16s/amd/gen1/default.nix | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 lenovo/thinkpad/p16s/amd/gen1/default.nix diff --git a/README.md b/README.md index a6ee086..47cc48c 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ See code for all available configurations. | [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `` | | [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `` | | [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `` | +| [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `` | | [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `` | | [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `` | | [Lenovo ThinkPad P51](lenovo/thinkpad/p51) | `` | diff --git a/flake.nix b/flake.nix index bbe0c80..4063893 100644 --- a/flake.nix +++ b/flake.nix @@ -70,6 +70,7 @@ lenovo-thinkpad-p1 = import ./lenovo/thinkpad/p1; lenovo-thinkpad-p1-gen3 = import ./lenovo/thinkpad/p1/3th-gen; lenovo-thinkpad-p14s-amd-gen2 = import ./lenovo/thinkpad/p14s/amd/gen2; + lenovo-thinkpad-p16s-amd-gen1 = import ./lenovo/thinkpad/p16s/amd/gen1; lenovo-thinkpad-p50 = import ./lenovo/thinkpad/p50; lenovo-thinkpad-p51 = import ./lenovo/thinkpad/p51; lenovo-thinkpad-p52 = import ./lenovo/thinkpad/p52; diff --git a/lenovo/thinkpad/p16s/amd/gen1/default.nix b/lenovo/thinkpad/p16s/amd/gen1/default.nix new file mode 100644 index 0000000..5b7bfe4 --- /dev/null +++ b/lenovo/thinkpad/p16s/amd/gen1/default.nix @@ -0,0 +1,6 @@ +{ config, lib, pkgs, ... }: + +{ + # For mainline support of rtw89 wireless networking + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest; +}