# Compressed swap in RAM. zstd averages around 3:1, so the worst case for a # full device is roughly a third of the size below. # # The generator's own default caps this at 4G, which sends machines with a lot # of memory to the disk swapfile far earlier than they need to go. [zram0] zram-size = min(ram / 2, 8192) compression-algorithm = zstd # Above the pri=0 that omarchy-hibernation-setup gives the disk swapfile, so # zram absorbs everything until it's full. swap-priority = 100