From 16dd009a9886b39f3e907b8da7d2fb2b309fb642 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 7 Dec 2025 00:22:29 -0600 Subject: [PATCH] Add hosts and packages to checks --- checks.nix | 3 +++ flake.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/checks.nix b/checks.nix index 8e828e6..17620c0 100644 --- a/checks.nix +++ b/checks.nix @@ -2,6 +2,7 @@ hooks, lib, system, + top, ... }: @@ -37,3 +38,5 @@ }; }; } +// (builtins.mapAttrs (_n: v: v.config.system.build.toplevel) top.self.nixosConfigurations) +// (top.self.packages.${system}) diff --git a/flake.nix b/flake.nix index fce28f8..10f67d9 100644 --- a/flake.nix +++ b/flake.nix @@ -114,7 +114,7 @@ packages = (import ./pkgs { inherit pkgs top; }) // (import ./vms { inherit top; }); checks = import ./checks.nix { - inherit system; + inherit system top; inherit (top) hooks; inherit (pkgs) lib; };