nixos/flake/templates.nix

19 lines
296 B
Nix
Raw Permalink Normal View History

{
2025-05-03 23:23:02 +08:00
flake-parts-lib,
lib,
rootPath,
2025-05-03 23:23:02 +08:00
...
2025-07-13 06:04:55 +08:00
}:
{
2025-05-03 23:23:02 +08:00
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
templates = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.raw;
};
};
};
config = {
flake.templates = import (rootPath + "/templates");
};
}