nixos/flake/templates.nix

17 lines
296 B
Nix

{
flake-parts-lib,
lib,
rootPath,
...
}: {
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
templates = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.raw;
};
};
};
config = {
flake.templates = import (rootPath + "/templates");
};
}