2023-08-31 01:55:45 +03:00
|
|
|
{ config, lib, ... }:
|
2023-02-24 16:16:15 +02:00
|
|
|
|
|
|
|
let
|
2023-08-31 01:55:45 +03:00
|
|
|
inherit (lib) mapAttrs nixosSystem;
|
2023-02-24 16:16:15 +02:00
|
|
|
inherit (config) gods;
|
|
|
|
|
|
|
|
mkNixOS = name: host: nixosSystem {
|
2023-08-31 01:55:45 +03:00
|
|
|
specialArgs = config.lib.summon name lib.id;
|
2023-02-24 16:16:15 +02:00
|
|
|
inherit (host) system;
|
2023-08-31 01:55:45 +03:00
|
|
|
modules = [ host.nixos ] ++ config.cluster.config.out.injectNixosConfig name;
|
2023-02-24 16:16:15 +02:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
flake.nixosConfigurations = mapAttrs mkNixOS (gods.fromLight // gods.fromFlesh);
|
|
|
|
}
|