diff --git a/README.md b/README.md index 8f36405..bb28005 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ See code for all available configurations. | Lenovo ThinkPad L14 (AMD) | ` | | Lenovo ThinkPad P53 | `` | | Lenovo ThinkPad T14s | `` | +| Lenovo ThinkPad T14s AMD Gen 1 | `` | | Lenovo ThinkPad T410 | `` | | Lenovo ThinkPad T420 | `` | | Lenovo ThinkPad T430 | `` | diff --git a/flake.nix b/flake.nix index da24084..592f342 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,7 @@ lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd; lenovo-thinkpad-p53 = import ./lenovo/thinkpad/p53; lenovo-thinkpad-t14s = import ./lenovo/thinkpad/t14s; + lenovo-thinkpad-t14s-amd-gen1 = import ./lenovo/thinkpad/t14s/amd/gen1; lenovo-thinkpad-t410 = import ./lenovo/thinkpad/t410; lenovo-thinkpad-t420 = import ./lenovo/thinkpad/t420; lenovo-thinkpad-t430 = import ./lenovo/thinkpad/t430; diff --git a/lenovo/thinkpad/t14s/amd/default.nix b/lenovo/thinkpad/t14s/amd/default.nix new file mode 100644 index 0000000..2b860e8 --- /dev/null +++ b/lenovo/thinkpad/t14s/amd/default.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ../. + ../../../../common/cpu/amd + ]; + + # For support of newer AMD GPUs, backlight and internal microphone + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest; +} diff --git a/lenovo/thinkpad/t14s/amd/gen1/default.nix b/lenovo/thinkpad/t14s/amd/gen1/default.nix new file mode 100644 index 0000000..cb1ec7d --- /dev/null +++ b/lenovo/thinkpad/t14s/amd/gen1/default.nix @@ -0,0 +1,8 @@ + +{ config, lib, pkgs, ... }: + +{ + imports = [ + ../. + ]; +} diff --git a/lenovo/thinkpad/t14s/default.nix b/lenovo/thinkpad/t14s/default.nix index 71761ed..d783b21 100644 --- a/lenovo/thinkpad/t14s/default.nix +++ b/lenovo/thinkpad/t14s/default.nix @@ -3,7 +3,6 @@ { imports = [ ../. - ../../../common/cpu/amd ../../../common/pc/laptop/acpi_call.nix ];