From 773b49122afe05a89748f71cff1250e8800e481c Mon Sep 17 00:00:00 2001 From: Keanu Kerr Date: Sun, 1 Jun 2025 07:04:26 -0400 Subject: [PATCH 1/2] Added config file for Lenovo Thinkpad P14s AMD Gen 5 --- README.md | 1 + flake.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 8d6bcf95..8f2c54a3 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ See code for all available configurations. | [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `` | | [Lenovo ThinkPad P14s AMD Gen 3](lenovo/thinkpad/p14s/amd/gen3) | `` | | [Lenovo ThinkPad P14s AMD Gen 4](lenovo/thinkpad/p14s/amd/gen4) | `` | +| [Lenovo ThinkPad P14s AMD Gen 5](lenovo/thinkpad/p14s/amd/gen5) | `` | | [Lenovo ThinkPad P14s Intel Gen 3](lenovo/thinkpad/p14s/intel/gen3) | `` | | [Lenovo ThinkPad P14s Intel Gen 5](lenovo/thinkpad/p14s/intel/gen5) | `` | | [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `` | diff --git a/flake.nix b/flake.nix index 915d9a78..f7481983 100644 --- a/flake.nix +++ b/flake.nix @@ -200,6 +200,7 @@ lenovo-thinkpad-p14s-amd-gen2 = import ./lenovo/thinkpad/p14s/amd/gen2; lenovo-thinkpad-p14s-amd-gen3 = import ./lenovo/thinkpad/p14s/amd/gen3; lenovo-thinkpad-p14s-amd-gen4 = import ./lenovo/thinkpad/p14s/amd/gen4; + lenovo-thinkpad-p14s-amd-gen5 = import ./lenovo/thinkpad/p14s/amd/gen5; lenovo-thinkpad-p14s-intel-gen3 = import ./lenovo/thinkpad/p14s/intel/gen3; lenovo-thinkpad-p14s-intel-gen5 = import ./lenovo/thinkpad/p14s/intel/gen5; lenovo-thinkpad-p16s-amd-gen1 = import ./lenovo/thinkpad/p16s/amd/gen1; From e9dcc95a38974bcc05718a08a3a1c1629b0b35c3 Mon Sep 17 00:00:00 2001 From: Keanu Kerr Date: Sun, 1 Jun 2025 07:05:03 -0400 Subject: [PATCH 2/2] Add config file --- lenovo/thinkpad/p14s/amd/gen5/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lenovo/thinkpad/p14s/amd/gen5/default.nix diff --git a/lenovo/thinkpad/p14s/amd/gen5/default.nix b/lenovo/thinkpad/p14s/amd/gen5/default.nix new file mode 100644 index 00000000..f70dde41 --- /dev/null +++ b/lenovo/thinkpad/p14s/amd/gen5/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; +}