move templates
This commit is contained in:
21
templates/mergeTemplateOptions.nix
Normal file
21
templates/mergeTemplateOptions.nix
Normal 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.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user