]> git.scottworley.com Git - nixos-qemu-vm-isolation/blobdiff - flake.nix
Offer option of an erofs nix store image
[nixos-qemu-vm-isolation] / flake.nix
index 355702e731c81ba8b89fc7f5178c22b68522c744..71b4beffc599d0dc052bcc5d7fc7dd1a27cd458e 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -1,9 +1,10 @@
 {
+  inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
   outputs = { self, nixpkgs, }:
     let
       inherit (nixpkgs.lib) genAttrs;
 
-      systems = nixpkgs.lib.systems.supported.tier1;
+      systems = import ./lib/tier1.nix nixpkgs;
 
       forAllSystems = genAttrs systems;
 
@@ -12,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}");
       });
     };
 }