mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 15:33:29 +01:00
lenovo/thinkpad/p14s: align with Thinkpad T14 configs
This commit is contained in:
1 parent
2a964239f6
commit
050f52eb55
3 files changed
+35
-3
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../../common/cpu/amd
|
||||||
|
../../../../common/gpu/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;
|
||||||
|
}
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
{ lib, pkgs, config, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../../../common/pc/laptop/acpi_call.nix
|
../.
|
||||||
../../../../../common/cpu/amd
|
|
||||||
../../../../../common/gpu/amd
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# For suspending to RAM, set Config -> Power -> Sleep State to "Linux" in EFI.
|
# For suspending to RAM, set Config -> Power -> Sleep State to "Linux" in EFI.
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# P14s is a rebadged T14 with slight internal differences.
|
||||||
|
# This may change for future models, so we duplicate the T14 hierarchy here.
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../common/pc/laptop/acpi_call.nix
|
||||||
|
../../../common/pc/laptop/ssd
|
||||||
|
];
|
||||||
|
|
||||||
|
# Force use of the amdgpu driver for backlight control on kernel versions where the
|
||||||
|
# native backlight driver is not already preferred. This is preferred over the
|
||||||
|
# "vendor" setting, in this case the thinkpad_acpi driver.
|
||||||
|
# See https://hansdegoede.livejournal.com/27130.html
|
||||||
|
# See https://lore.kernel.org/linux-acpi/20221105145258.12700-1-hdegoede@redhat.com/
|
||||||
|
boot.kernelParams = lib.mkIf (lib.versionOlder pkgs.linux.version "6.2") [ "acpi_backlight=native" ];
|
||||||
|
|
||||||
|
# see https://github.com/NixOS/nixpkgs/issues/69289
|
||||||
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.2") pkgs.linuxPackages_latest;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user