From 217360fa1ee9f7bf2894309bf9247a74d78083e7 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 11 Jun 2025 12:02:32 +0200 Subject: [PATCH] Feat(templates): export clan templates statically --- lib/build-clan/interface.nix | 2 ++ lib/build-clan/module.nix | 3 +++ 2 files changed, 5 insertions(+) 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