nix-dotfiles/hydra/jobs.nix

18 lines
504 B
Nix
Raw Normal View History

{ inputs, outputs }:
let
inherit (inputs.nixpkgs.lib) mapAttrs;
getCfg = _: cfg: cfg.config.system.build.toplevel;
# getFormat =
# _: cfg: format:
# cfg.config.formats.${format};
imageWrapper = format: mapAttrs (_: cfg: cfg.config.formats.${format}) outputs.nixosConfigurations;
in
{
inherit (outputs) formatter devShells;
hosts = mapAttrs getCfg outputs.nixosConfigurations;
install-isos = imageWrapper "install-iso";
isos = imageWrapper "iso";
qcow = imageWrapper "qcow";
}