- Create lib/mkFleet.nix to expose fleet generator as library function
- Allow external flakes to use Athenix's fleet logic with custom inventory
- Export lib output in flake.nix with proper input passing
- Enable usage: nixosConfigurations = athenix.lib.mkFleet { fleet = ...; hwTypes = ...; }
11 lines
291 B
Nix
11 lines
291 B
Nix
# Generate fleet configurations with custom fleet and hardware types
|
|
# Usage: nixosConfigurations = athenix.lib.mkFleet { fleet = { ... }; hwTypes = { ... }; }
|
|
{
|
|
inputs,
|
|
fleet ? null,
|
|
hwTypes ? null,
|
|
}:
|
|
import ../fleet/default.nix {
|
|
inherit inputs;
|
|
inherit fleet hwTypes;
|
|
} |