Remove the 58 GiB swapfile on the LUKS root, along with what depended on it: resumeDevice, resume_offset, the suspend-then-hibernate logind actions and HibernateDelaySec. zram is now the only swap, capped at 8 GiB so it can't cut into memory needed for large LLM/GTT loads. Lid, idle and the suspend key now do plain s2idle suspend; the power key powers off. This loses the hibernate fallback that used to end a spurious-wake loop; acpi.ec_no_wakeup=1 and the gsd-power tweaks are now all that keeps s2idle stable. Assisted-by: Claude:opus-5-5
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
# 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
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/mapper/luks-71c97ce7-dd29-4b07-8d2a-8cc3985a65bd";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-71c97ce7-dd29-4b07-8d2a-8cc3985a65bd".device = "/dev/disk/by-uuid/71c97ce7-dd29-4b07-8d2a-8cc3985a65bd";
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/8895-7EE4";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0077" "dmask=0077" ];
|
||
};
|
||
|
||
fileSystems."/mnt/arch" =
|
||
{ device = "/dev/disk/by-uuid/15ae8384-3dfc-4915-9201-66ecfc5f230d";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@" "nofail" ];
|
||
};
|
||
|
||
fileSystems."/mnt/data" =
|
||
{ device = "/dev/disk/by-uuid/2323a69f-8c95-484b-919b-a524213a33ca";
|
||
fsType = "ext4";
|
||
options = [ "nofail" ];
|
||
};
|
||
|
||
# No disk swap: zram only (modules/power.nix). Hibernate disabled.
|
||
swapDevices = [ ];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|