From 4a64e8808bf1769a24835dc2f3f91bba0353a810 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Fri, 13 Oct 2023 19:03:46 -0700 Subject: [PATCH] lenovo/thinkpad/p14s/amd/gen3: init --- README.md | 3 ++- flake.nix | 1 + lenovo/thinkpad/p14s/amd/gen3/default.nix | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lenovo/thinkpad/p14s/amd/gen3/default.nix diff --git a/README.md b/README.md index 8a48d3d..df85322 100644 --- a/README.md +++ b/README.md @@ -190,8 +190,9 @@ See code for all available configurations. | [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `` | | [Lenovo ThinkPad L480](lenovo/thinkpad/l480) | `` | | [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `` | -| [Lenovo ThinkPad P14s AMD Gen 1](lenovo/thinkpad/p14s/amd/gen1) | `` | +| [Lenovo ThinkPad P14s AMD Gen 1](lenovo/thinkpad/p14s/amd/gen1) | `` | | [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `` | +| [Lenovo ThinkPad P14s AMD Gen 3](lenovo/thinkpad/p14s/amd/gen3) | `` | | [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `` | | [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `` | | [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `` | diff --git a/flake.nix b/flake.nix index 062c735..281a8f7 100644 --- a/flake.nix +++ b/flake.nix @@ -127,6 +127,7 @@ lenovo-thinkpad-p1-gen3 = import ./lenovo/thinkpad/p1/3th-gen; lenovo-thinkpad-p14s-amd-gen1 = import ./lenovo/thinkpad/p14s/amd/gen1; lenovo-thinkpad-p14s-amd-gen2 = import ./lenovo/thinkpad/p14s/amd/gen2; + lenovo-thinkpad-p14s-amd-gen3 = import ./lenovo/thinkpad/p14s/amd/gen3; 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; diff --git a/lenovo/thinkpad/p14s/amd/gen3/default.nix b/lenovo/thinkpad/p14s/amd/gen3/default.nix new file mode 100644 index 0000000..f70dde4 --- /dev/null +++ b/lenovo/thinkpad/p14s/amd/gen3/default.nix @@ -0,0 +1,12 @@ +{ lib, pkgs, ... }: + +{ + imports = [ + ../. + ../../../../../common/cpu/amd/pstate.nix + ]; + + # For the Qualcomm NFA-725A (Device 1103) wireless network controller + # See https://bugzilla.redhat.com/show_bug.cgi?id=2047878 + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest; +}