]> git.scottworley.com Git - nixos-qemu-vm-isolation/commitdiff
Use the new nixpkgs.lib.nixos.runTest interface for checks
authorScott Worley <scottworley@scottworley.com>
Thu, 22 Jun 2023 21:48:45 +0000 (14:48 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 22 Jun 2023 21:48:45 +0000 (14:48 -0700)
checks/mount-grep.nix
flake.nix

index 99084eaf3b8f461b9c934287a72db00e14f26fa6..90ae4a7d8e3c33b59228e3c81703ad4706bc3f2f 100644 (file)
@@ -1,12 +1,14 @@
-{ lib, pkgs, ... }: {
+pkgs: {
   name = "qemu-private-store-mount-grep";
 
+  hostPkgs = pkgs;
+
   nodes = {
     shared = _: { };
     private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
     useNixStoreImage = {
       virtualisation = {
-        sharedDirectories = lib.mkForce { };
+        sharedDirectories = pkgs.lib.mkForce { };
         useNixStoreImage = true;
       };
     };
index ddce3f9f292a287d3c24b39afd0a56ecee033f7c..71b4beffc599d0dc052bcc5d7fc7dd1a27cd458e 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -13,8 +13,8 @@
         qemu-vm-isolation = import ./modules/qemu-vm-isolation.nix;
       };
       checks = forAllSystems (system: {
-        mount-grep = nixpkgs.legacyPackages."${system}".nixosTest
-          (import ./checks/mount-grep.nix);
+        mount-grep = nixpkgs.lib.nixos.runTest
+          (import ./checks/mount-grep.nix nixpkgs.legacyPackages."${system}");
       });
     };
 }