Hacker News
Swap, ZRAM, Zswap and Hibernate on NixOS
NixOS users can enable hibernation by configuring a swap partition or file, with the system automatically managing necessary offsets. To optimize performance, enabling zswap with disk-backed swap and setting swappiness to 100 provides an effective configuration for SSD-based workstations. This approach avoids the limitations of using zram alongside disk-based swap for hibernation.