2024-04-17 20:51:36 -04:00
|
|
|
{ inputs, outputs }:
|
|
|
|
let
|
|
|
|
inherit (inputs.nixpkgs.lib) mapAttrs;
|
|
|
|
|
|
|
|
getCfg = _: cfg: cfg.config.system.build.toplevel;
|
2024-06-03 12:14:51 -04:00
|
|
|
# getFormat =
|
|
|
|
# _: cfg: format:
|
|
|
|
# cfg.config.formats.${format};
|
|
|
|
imageWrapper = format: mapAttrs (_: cfg: cfg.config.formats.${format}) outputs.nixosConfigurations;
|
2024-04-17 20:51:36 -04:00
|
|
|
in
|
|
|
|
{
|
2024-05-21 19:43:57 -04:00
|
|
|
inherit (outputs) formatter devShells;
|
2024-04-17 20:51:36 -04:00
|
|
|
hosts = mapAttrs getCfg outputs.nixosConfigurations;
|
2024-06-03 11:27:04 -04:00
|
|
|
install-isos = imageWrapper "install-iso";
|
|
|
|
isos = imageWrapper "iso";
|
|
|
|
qcow = imageWrapper "qcow";
|
2024-04-17 20:51:36 -04:00
|
|
|
}
|