nix-dotfiles/hydra/jobs.nix

28 lines
592 B
Nix
Raw Normal View History

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