feat: add lib.mkFleet for external flake consumption
- 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 = ...; }
This commit is contained in:
4
lib/default.nix
Normal file
4
lib/default.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ inputs }:
|
||||
{
|
||||
mkFleet = import ./mkFleet.nix;
|
||||
}
|
||||
11
lib/mkFleet.nix
Normal file
11
lib/mkFleet.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
# 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;
|
||||
}
|
||||
Reference in New Issue
Block a user