mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Set dirty_bytes and dirty_background_bytes to low thresholds (10MB/5MB) before copying the nix store into the VM image. This forces the kernel to write back dirty pages almost immediately instead of letting them accumulate. Clean page cache is evicted automatically under memory pressure, so this prevents OOM even when copying files larger than available VM RAM.