keep host topLevel, add constituent job

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-07-07 21:26:24 -04:00 committed by Alice Huston
parent 21deb9ab55
commit b9febaba07

View File

@ -4,13 +4,15 @@ let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
getCfg = _: cfg: cfg.config.system.build.toplevel; getCfg = _: cfg: cfg.config.system.build.toplevel;
hostToAgg = _: cfg: cfg;
in in
rec { rec {
inherit (outputs) formatter devShells checks; inherit (outputs) formatter devShells checks;
host = mapAttrs getCfg outputs.nixosConfigurations;
hosts = pkgs.releaseTools.aggregate { hosts = pkgs.releaseTools.aggregate {
name = "hosts"; name = "hosts";
constituents = mapAttrsToList getCfg outputs.nixosConfigurations; constituents = mapAttrsToList hostToAgg host;
}; };
} }
// (mapAttrs getCfg outputs.nixosConfigurations)