]> git.scottworley.com Git - nixos-qemu-vm-isolation/blobdiff - checks/mount-grep.nix
Drop support for < 23.05
[nixos-qemu-vm-isolation] / checks / mount-grep.nix
index 99084eaf3b8f461b9c934287a72db00e14f26fa6..33478ea687c2229ababb3b7faa4568e479a47b71 100644 (file)
@@ -1,12 +1,16 @@
-{ lib, pkgs, ... }: {
+pkgs: {
   name = "qemu-private-store-mount-grep";
 
+  hostPkgs = pkgs;
+
+  includeTestScriptReferences = false;
+
   nodes = {
     shared = _: { };
     private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
     useNixStoreImage = {
       virtualisation = {
-        sharedDirectories = lib.mkForce { };
+        sharedDirectories = pkgs.lib.mkForce { };
         useNixStoreImage = true;
       };
     };
@@ -24,8 +28,6 @@
 
     shared.succeed("[[ -e ${pkgs.pv} ]]")
     private.fail("[[ -e ${pkgs.pv} ]]")
-
-    # useNixStoreImage isn't ready until this works:
-    # useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]")
+    useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]")
   '';
 }