refactor: update imports to use glue/ and variants/

- flake.nix: import glue/fleet.nix instead of hosts/
- installer/artifacts.nix: use 'fleet' parameter instead of 'hosts'
- installer/modules.nix: auto-import from variants/ directory
This commit is contained in:
UGA Innovation Factory
2026-01-06 18:31:58 -05:00
parent 77cea838a1
commit c3bbf6f8be
3 changed files with 29 additions and 46 deletions

View File

@@ -69,10 +69,10 @@
...
}:
let
hosts = import ./hosts { inherit inputs; };
fleet = import ./glue/fleet.nix { inherit inputs; };
linuxSystem = "x86_64-linux";
artifacts = import ./installer/artifacts.nix {
inherit inputs hosts self;
inherit inputs fleet self;
system = linuxSystem;
};
forAllSystems = nixpkgs.lib.genAttrs [
@@ -86,13 +86,13 @@
# Formatter for 'nix fmt'
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
# Generate NixOS configurations from hosts/default.nix
nixosConfigurations = hosts.nixosConfigurations;
# Generate NixOS configurations from fleet generator
nixosConfigurations = fleet.nixosConfigurations;
# Expose artifacts to all systems, but they are always built for x86_64-linux
packages = forAllSystems (_: artifacts);
# Expose modules for external use
# Expose host type modules and installer modules for external use
nixosModules = import ./installer/modules.nix { inherit inputs; };
# Templates for external configurations