18 lines
497 B
Nix
18 lines
497 B
Nix
{ config, lib, withSystem, ... }:
|
|
|
|
let
|
|
inherit (lib) mapAttrs nixosSystem;
|
|
inherit (config) gods;
|
|
|
|
mkNixOS = name: host: nixosSystem {
|
|
specialArgs = config.lib.summon host.system lib.id;
|
|
modules = [
|
|
host.nixos
|
|
(withSystem host.system ({ config, pkgs, ... }: {
|
|
nixpkgs.pkgs = pkgs // config.shadows;
|
|
}))
|
|
] ++ config.cluster.config.out.injectNixosConfig name;
|
|
};
|
|
in {
|
|
flake.nixosConfigurations = mapAttrs mkNixOS (gods.fromLight // gods.fromFlesh);
|
|
}
|