Files
nixos-servers/system/zram.nix
Torjus Håkestad 1674b6a844
Some checks failed
Run nix flake check / flake-check (push) Failing after 12m6s
system: enable zram swap for all hosts
Provides compressed swap in RAM to prevent OOM kills during
nixos-rebuild on low-memory VMs (2GB). Removes duplicate zram
configs from jelly01 and nix-cache01.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 13:02:58 +01:00

9 lines
177 B
Nix

# Compressed swap in RAM
#
# Provides overflow memory during Nix builds and upgrades.
# Prevents OOM kills on low-memory hosts (2GB VMs).
{ ... }:
{
zramSwap.enable = true;
}