make hosts an aggregate job

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-07-07 20:52:04 -04:00 committed by Alice Huston
parent b9cbaf8c13
commit c1b3899888

View File

@ -1,10 +1,14 @@
{ inputs, outputs }:
let
inherit (inputs.nixpkgs.lib) mapAttrs;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
getCfg = _: cfg: cfg.config.system.build.toplevel;
in
{
inherit (outputs) formatter devShells;
hosts = mapAttrs getCfg outputs.nixosConfigurations;
inherit (outputs) formatter devShells checks;
hosts = pkgs.releaseTools.aggregate {
name = "hosts";
constituents = mapAttrs getCfg outputs.nixosConfigurations;
};
}