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 }:
|
{ inputs, outputs }:
|
||||||
let
|
let
|
||||||
inherit (inputs.nixpkgs.lib) mapAttrs;
|
inherit (inputs.nixpkgs.lib) mapAttrs;
|
||||||
|
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
|
||||||
getCfg = _: cfg: cfg.config.system.build.toplevel;
|
getCfg = _: cfg: cfg.config.system.build.toplevel;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit (outputs) formatter devShells;
|
inherit (outputs) formatter devShells checks;
|
||||||
hosts = mapAttrs getCfg outputs.nixosConfigurations;
|
hosts = pkgs.releaseTools.aggregate {
|
||||||
|
name = "hosts";
|
||||||
|
constituents = mapAttrs getCfg outputs.nixosConfigurations;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user