nixos/flake/templates.nix

19 lines
310 B
Nix
Raw Normal View History

{
2025-05-03 23:23:02 +08:00
flake-parts-lib,
lib,
...
}: let
rootPath = ./..;
in {
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");
};
}