refactor module to ugaif and readme update

This commit is contained in:
UGA Innovation Factory
2025-12-15 15:32:40 -05:00
parent 5ba8dce77b
commit 19737c2adb
23 changed files with 356 additions and 171 deletions

View File

@@ -62,7 +62,7 @@ let
# Generate installer ISOs for hosts that have "installer-iso" in their buildMethods
installerPackages = lib.listToAttrs (lib.concatMap (name:
let cfg = hosts.nixosConfigurations.${name}; in
if lib.elem "installer-iso" cfg.config.host.buildMethods then [{
if lib.elem "installer-iso" cfg.config.ugaif.host.buildMethods then [{
name = "installer-iso-${name}";
value = (mkInstaller name).config.system.build.isoImage;
}] else []
@@ -71,7 +71,7 @@ let
# Generate Live ISOs for hosts that have "iso" in their buildMethods
isoPackages = lib.listToAttrs (lib.concatMap (name:
let cfg = hosts.nixosConfigurations.${name}; in
if lib.elem "iso" cfg.config.host.buildMethods then [{
if lib.elem "iso" cfg.config.ugaif.host.buildMethods then [{
name = "iso-${name}";
value = mkGenerator name "iso";
}] else []
@@ -80,7 +80,7 @@ let
# Generate iPXE artifacts (kernel, initrd, script) for hosts that have "ipxe" in their buildMethods
ipxePackages = lib.listToAttrs (lib.concatMap (name:
let cfg = hosts.nixosConfigurations.${name}; in
if lib.elem "ipxe" cfg.config.host.buildMethods then [{
if lib.elem "ipxe" cfg.config.ugaif.host.buildMethods then [{
name = "ipxe-${name}";
value =
let
@@ -100,7 +100,7 @@ let
# Generate LXC tarballs for hosts that have "lxc" in their buildMethods
lxcPackages = lib.listToAttrs (lib.concatMap (name:
let cfg = hosts.nixosConfigurations.${name}; in
if lib.elem "lxc" cfg.config.host.buildMethods then [{
if lib.elem "lxc" cfg.config.ugaif.host.buildMethods then [{
name = "lxc-${name}";
value =
if cfg.config.boot.isContainer then
@@ -112,7 +112,7 @@ let
proxmoxPackages = lib.listToAttrs (lib.concatMap (name:
let cfg = hosts.nixosConfigurations.${name}; in
if lib.elem "proxmox" cfg.config.host.buildMethods then [{
if lib.elem "proxmox" cfg.config.ugaif.host.buildMethods then [{
name = "proxmox-${name}";
value =
if cfg.config.boot.isContainer then