refactor: orion and base

This commit is contained in:
2026-04-24 21:57:43 +02:00
parent 32c12e8797
commit 55fbe82a42
7 changed files with 307 additions and 972 deletions
+4 -10
View File
@@ -3,12 +3,6 @@
config,
...
}:
let
hostNames = builtins.attrNames (
inputs.nixpkgs.lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./hosts)
);
nixosModules = config.flake.modules.nixos;
in
{
imports = [
inputs.flake-parts.flakeModules.modules
@@ -17,13 +11,13 @@ in
systems = [ "x86_64-linux" ];
flake.nixosConfigurations = inputs.nixpkgs.lib.genAttrs hostNames (
name:
flake.nixosConfigurations = builtins.mapAttrs (
_: machine:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ nixosModules.${name} ];
modules = [ (machine.buildFunction machine) ];
}
);
) config.repo.machines;
perSystem =
{ pkgs, ... }: