Files
.hive/templates/mergeTemplateOptions.nix
2026-03-28 16:20:41 +01:00

22 lines
465 B
Nix

# 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.
'';
};
};
};
}