diff --git a/lib/build-clan/interface.nix b/lib/build-clan/interface.nix index 7e70b90e8..f71e97d90 100644 --- a/lib/build-clan/interface.nix +++ b/lib/build-clan/interface.nix @@ -213,6 +213,8 @@ in secrets = lib.mkOption { type = lib.types.raw; }; + templates = lib.mkOption { type = lib.types.raw; }; + machines = lib.mkOption { type = lib.types.raw; }; }; }; diff --git a/lib/build-clan/module.nix b/lib/build-clan/module.nix index aee0a2b79..a137f8202 100644 --- a/lib/build-clan/module.nix +++ b/lib/build-clan/module.nix @@ -250,6 +250,9 @@ in # We should have only clan.modules. (consistent with clan.templates) inherit (clan-core) clanModules; + # Statically export the predefined clan modules + templates = clan-core.clan.templates; + secrets = config.secrets; # machine specifics