From 3e950bc66fcc05ad3a8660d60dac04925d19314b Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 27 Oct 2025 17:38:34 +0100 Subject: [PATCH] docs: add doc-comment for template submodule --- modules/clan/templates.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/clan/templates.nix b/modules/clan/templates.nix index 91042f821..84c24791b 100644 --- a/modules/clan/templates.nix +++ b/modules/clan/templates.nix @@ -1,3 +1,28 @@ +/** + The templates submodule + + 'clan.templates' + + Different kinds supported: + + - clan templates: 'clan.templates.clan' + - disko templates: 'clan.templates.disko' + - machine templates: 'clan.templates.machine' + + A template has the form: + + ```nix + { + description: string; # short summary what the template contains + path: path; # path to the template + } + ``` + + The clan API copies the template from the given 'path' + into a target folder. For example, + + `./machines/` for 'machine' templates. +*/ { lib, ...