refactor: simplify module composition

This commit is contained in:
kiri committed 2026-04-22 02:35:26 +02:00
1 parent 3b6c42ebe3
commit 5eec5689f4
25 files changed
+615 -448

No files matched your search

+11 -15
View File
@@ -4,6 +4,11 @@
...
}:
let
hostNames = [
"orion"
"polaris"
"zenith"
];
nixosModules = config.flake.modules.nixos;
in
{
@@ -11,22 +16,13 @@ in
systems = [ "x86_64-linux" ];
flake.nixosConfigurations = {
orion = inputs.nixpkgs.lib.nixosSystem {
flake.nixosConfigurations = inputs.nixpkgs.lib.genAttrs hostNames (
name:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ nixosModules.orion ];
};
polaris = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ nixosModules.polaris ];
};
zenith = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ nixosModules.zenith ];
};
};
modules = [ nixosModules.${name} ];
}
);
perSystem =
{ pkgs, ... }: