From ab670adac1c02e93e83cd7293f49bd12f9071877 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 22 Jun 2023 14:48:45 -0700 Subject: [PATCH] Use the new nixpkgs.lib.nixos.runTest interface for checks --- checks/mount-grep.nix | 6 ++++-- flake.nix | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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}"); }); }; } -- 2.44.1