depot/cluster/inject.nix

16 lines
277 B
Nix
Raw Normal View History

2022-06-23 21:13:28 +03:00
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;
}