power: drop the disk swapfile and hibernate
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
This commit is contained in:
parent
8f0062a5b0
commit
4fb583cf54
2 changed files with 19 additions and 36 deletions
|
|
@ -40,11 +40,8 @@
|
|||
options = [ "nofail" ];
|
||||
};
|
||||
|
||||
# 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
|
||||
];
|
||||
# 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue