depot/cluster/inject.nix
2022-08-03 23:04:19 +02:00

15 lines
277 B
Nix

hostName:
{ lib, ... }:
let
cluster = import ./. { inherit lib hostName; };
in
{
_module.args.cluster = {
inherit (cluster.config) vars;
inherit (cluster.config.vars) hosts;
inherit (cluster) config;
};
imports = cluster.config.out.injectedNixosConfig;
}