Skip to content
Unverified Commit 20487112 authored by aszlig's avatar aszlig
Browse files

nixos: Fix output path generation of runInMachine

Regression introduced by a02bb001

.

The fix is done by disabling writableStore, because the latter will set
up an overlayfs on the Nix store within the VM, which in turn will
discard all the outputs of the resulting output path.

However in runInMachine we actually *want* the contents of the generated
path and also don't want a writable store within the VM (except of
course for $out, which is writable anyway).

I've added a small regression test to verifify the output in
nixos/tests/run-in-machine.nix to make sure this won't break again in
the future.

Signed-off-by: default avataraszlig <aszlig@redmoonstudios.org>
parent 5dda1324
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment