Files
nix-dotfiles/hydra/jobs.nix
T

17 lines
432 B
Nix
Raw Normal View History

2024-04-17 20:51:36 -04:00
{ inputs, outputs }:
let
2024-07-07 21:15:45 -04:00
inherit (inputs.nixpkgs.lib) mapAttrs mapAttrsToList;
2024-07-07 20:52:04 -04:00
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
2024-04-17 20:51:36 -04:00
getCfg = _: cfg: cfg.config.system.build.toplevel;
in
2024-07-07 21:07:06 -04:00
rec {
2024-07-07 20:52:04 -04:00
inherit (outputs) formatter devShells checks;
2024-07-07 21:07:06 -04:00
2024-07-07 20:52:04 -04:00
hosts = pkgs.releaseTools.aggregate {
name = "hosts";
2024-07-07 21:15:45 -04:00
constituents = mapAttrsToList getCfg outputs.nixosConfigurations;
2024-07-07 20:52:04 -04:00
};
2024-04-17 20:51:36 -04:00
}
2024-07-07 21:15:45 -04:00
// (mapAttrs getCfg outputs.nixosConfigurations)