Tech News
← Home  ·  All topics

Hibernate

1 GoKawiil brief on this topic

NixOS guide details swap, ZRAM, Zswap and hibernate configuration tradeoffs

A blog post walks through configuring swap on NixOS for desktops and laptops that use suspend-then-hibernate, contrasting swap partitions with swap files. It notes that swap files complicate hibernation because initramfs must locate the swap space before file systems mount, requiring an EFI variable to record the location at hibernation time. The author shares working configurations: a simple swap partition on a desktop, and a LUKS-encrypted btrfs swap file on a laptop using the disko luks-btrfs-subvolumes template.