move templates

This commit is contained in:
2026-03-28 16:20:41 +01:00
parent fc166785ee
commit d6b6751ebd
15 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Flake module that declares flake.templates outputs and how to merge it
{
lib,
flake-parts-lib,
...
}: let
inherit (lib) mkOption types;
inherit (flake-parts-lib) mkSubmoduleOptions;
in {
options = {
flake = mkSubmoduleOptions {
templates = mkOption {
type = types.lazyAttrsOf types.unspecified;
default = {};
description = ''
Templates that will be put in the self flake.
'';
};
};
};
}