Refactored the repository structure by renaming variants/ to hw and glue/ to fleet, fixing an infinite recursion bug by separating fleet options evaluation, and adding a lib.mkFleet function to enable external flakes to reuse Athenix's fleet generation #29
@@ -13,12 +13,15 @@
|
|||||||
# inputs.athenix.nixosModules.sw
|
# inputs.athenix.nixosModules.sw
|
||||||
|
|
||||||
{ inputs }:
|
{ inputs }:
|
||||||
# Automatically import all variant modules from variants/ directory
|
# Expose hardware type modules from hw/ directory
|
||||||
# This returns an attribute set like: { nix-desktop = ...; nix-laptop = ...; nix-lxc = ...; sw = ...; }
|
# This returns an attribute set like: { nix-desktop = ...; nix-laptop = ...; nix-lxc = ...; }
|
||||||
(import ../variants { inherit inputs; })
|
let
|
||||||
// {
|
hostTypes = import ../hw { inherit inputs; };
|
||||||
|
in
|
||||||
|
{
|
||||||
# Software configuration module - main module with all athenix.sw options
|
# Software configuration module - main module with all athenix.sw options
|
||||||
# Use athenix.sw.type to select profile: "desktop", "tablet-kiosk", "headless", "stateless-kiosk"
|
# Use athenix.sw.type to select profile: "desktop", "tablet-kiosk", "headless", "stateless-kiosk"
|
||||||
|
hw = hostTypes;
|
||||||
sw =
|
sw =
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
|
|||||||
Reference in New Issue
Block a user