From c1b3899888146133f61577bc46231235eb2c59de Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sun, 7 Jul 2024 20:52:04 -0400 Subject: [PATCH] make hosts an aggregate job Signed-off-by: ahuston-0 --- hydra/jobs.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hydra/jobs.nix b/hydra/jobs.nix index cb70d1b..87bfb56 100644 --- a/hydra/jobs.nix +++ b/hydra/jobs.nix @@ -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; + }; }