From: Scott Worley Date: Thu, 22 Jun 2023 21:48:45 +0000 (-0700) Subject: Use the new nixpkgs.lib.nixos.runTest interface for checks X-Git-Url: http://git.scottworley.com/nixos-qemu-vm-isolation/commitdiff_plain/ab670adac1c02e93e83cd7293f49bd12f9071877?ds=inline Use the new nixpkgs.lib.nixos.runTest interface for checks --- diff --git a/checks/mount-grep.nix b/checks/mount-grep.nix index 99084ea..90ae4a7 100644 --- a/checks/mount-grep.nix +++ b/checks/mount-grep.nix @@ -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; }; }; diff --git a/flake.nix b/flake.nix index ddce3f9..71b4bef 100644 --- 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}"); }); }; }