2022-12-31 10:52:38 +00:00
|
|
|
{ lib, pkgs, ... }: {
|
2022-09-01 07:47:30 +00:00
|
|
|
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
|
2023-03-25 10:35:20 +00:00
|
|
|
../../../common/hidpi.nix # can be dropped after nixos 23.05
|
2022-09-01 07:47:30 +00:00
|
|
|
];
|
|
|
|
# kernel versions prior to 5.18 won't boot
|
2022-09-29 11:32:55 +00:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_latest);
|
2022-09-01 07:47:30 +00:00
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
|
|
|
hardware.trackpoint.device = lib.mkDefault "TPPS/2 Elan TrackPoint";
|
|
|
|
|
|
|
|
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");
|
|
|
|
}
|