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:
10
flake.nix
10
flake.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user