nix-dotfiles/hydra/jobs.nix
ahuston-0 503de488fe base image generation
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-06-04 01:40:52 +00:00

18 lines
504 B
Nix

{ 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";
}