ThinkPad T14 G2 AMD -> P14s G6 AMD

This commit is contained in:
Sergei Poljanski 2026-05-07 17:55:07 +03:00
commit 5fbe4e306f
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
13 changed files with 226 additions and 62 deletions

View file

@ -1,4 +1,4 @@
# ThinkPad T14 G2(AMD)
# ThinkPad P14s Gen 6 AMD (Ryzen AI 7 PRO 350, Strix Point)
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
@ -10,7 +10,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
@ -40,7 +40,11 @@
options = [ "nofail" ];
};
swapDevices = [ ];
# Encrypted swapfile on LUKS root, sized for hibernate (RAM + headroom).
# NixOS auto-creates the file and computes resume offset on activation.
swapDevices = [
{ device = "/var/swapfile"; size = 59392; } # 58 GiB, RAM is 54 GiB
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;