by default, don't use a tmpfs for the /nix/store in the VM tests

This commit is contained in:
Qyriad 2026-03-05 15:44:58 +01:00
parent 301fe041c4
commit 5d541b9b30
2 changed files with 13 additions and 1 deletions

6
tests/README.md Normal file
View file

@ -0,0 +1,6 @@
# Notes for running the tests
The VM tests do Nix builds inside the VMs, so they have writable Nix stores.
Writable Nix stores in NixOS VM tests are, by default, tmpfs, but to speed up IO for the in-VM `nixos-rebuild`s, `./module-allow-rebuild-in-vm.nix` instead sets `virtualisation.writableStoreUseTmpfs = false;`, and allocates a much larger root filesystem for the VM.
Specifically, each VM test allocates 20 GiB.
If you are running low on disk space, disable `virtualisation.writableStoreUseTmpfs` in `./module-allow-rebuild-in-vm`.