lenovo/z: add Lenovo Thinkpad Z(13)

Co-authored-by: toastal <toastal@posteo.net>
This commit is contained in:
Marijan Petričević 2022-09-01 09:47:30 +02:00
parent 12620020f7
commit fb635bfba0
No known key found for this signature in database
GPG key ID: 1F91A4D2C72FDA5F
4 changed files with 32 additions and 0 deletions

View file

@ -165,6 +165,8 @@ See code for all available configurations.
| [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `<nixos-hardware/lenovo/thinkpad/x260>` | | [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `<nixos-hardware/lenovo/thinkpad/x260>` |
| [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `<nixos-hardware/lenovo/thinkpad/x270>` | | [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `<nixos-hardware/lenovo/thinkpad/x270>` |
| [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` | | [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` |
| [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` |
| [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `<nixos-hardware/lenovo/thinkpad/z/z13>` |
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | | [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` |
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` | | [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` |
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` | | [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` |

View file

@ -109,6 +109,8 @@
lenovo-thinkpad-x260 = import ./lenovo/thinkpad/x260; lenovo-thinkpad-x260 = import ./lenovo/thinkpad/x260;
lenovo-thinkpad-x270 = import ./lenovo/thinkpad/x270; lenovo-thinkpad-x270 = import ./lenovo/thinkpad/x270;
lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280; lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280;
lenovo-thinkpad-z = import ./lenovo/thinkpad/z;
lenovo-thinkpad-z13 = import ./lenovo/thinkpad/z/z13;
microsoft-surface = import ./microsoft/surface; microsoft-surface = import ./microsoft/surface;
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3; microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
msi-gs60 = import ./msi/gs60; msi-gs60 = import ./msi/gs60;

View file

@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }: {
imports = [
../../../lenovo/thinkpad
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/laptop/ssd
];
# kernel versions prior to 5.18 won't boot
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_5_18);
hardware.enableRedistributableFirmware = lib.mkDefault true;
hardware.trackpoint.device = lib.mkDefault "TPPS/2 Elan TrackPoint";
hardware.video.hidpi.enable = lib.mkDefault true;
services.fprintd.enable = lib.mkDefault true;
# kernel versions below 6.0 don't contain ACPI suspend2idle drivers for the Z13s AMD hardware
# my Z13 froze after waking up from suspend/ hibernate
services.logind.lidSwitch = lib.mkIf (lib.versionOlder pkgs.linux.version "6.00") (lib.mkDefault "lock");
}

View file

@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }: {
imports = [
../../../../lenovo/thinkpad/z
];
}