make hosts an aggregate job
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
b9cbaf8c13
commit
c1b3899888
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user