From 0d3eafc0142cf51f99c3aea671163d9b737d3f95 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Fri, 13 Oct 2023 19:04:14 -0700 Subject: [PATCH] lenovo/thinkpad/p14s/amd/gen4: init --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/p14s/amd/gen4/default.nix | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 lenovo/thinkpad/p14s/amd/gen4/default.nix diff --git a/README.md b/README.md index 9bc94b4..fc1e63e 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ See code for all available configurations. | [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 P14s AMD Gen 4](lenovo/thinkpad/p14s/amd/gen4) | `` | | [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 8288947..b248fab 100644 --- a/flake.nix +++ b/flake.nix @@ -131,6 +131,7 @@ 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-p14s-amd-gen4 = import ./lenovo/thinkpad/p14s/amd/gen4; 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/gen4/default.nix b/lenovo/thinkpad/p14s/amd/gen4/default.nix new file mode 100644 index 0000000..cc6244e --- /dev/null +++ b/lenovo/thinkpad/p14s/amd/gen4/default.nix @@ -0,0 +1,11 @@ +{ lib, pkgs, config, ... }: +{ + imports = [ + ../. + ../../../../../common/cpu/amd/pstate.nix + ]; + + # For the Qualcomm NFA765 [17cb: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; +}