2 name = "qemu-private-store-mount-grep";
6 private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
9 sharedDirectories = lib.mkForce { };
10 useNixStoreImage = true;
17 shared.wait_for_unit("multi-user.target")
18 private.wait_for_unit("multi-user.target")
19 useNixStoreImage.wait_for_unit("multi-user.target")
21 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
22 private.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
23 useNixStoreImage.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
25 shared.succeed("[[ -e ${pkgs.pv} ]]")
26 private.fail("[[ -e ${pkgs.pv} ]]")
28 # useNixStoreImage isn't ready until this works:
29 # useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]")