add templates as flake output
This commit is contained in:
parent
385bfedd8f
commit
c0d67ed108
11 changed files with 168 additions and 0 deletions
16
flake/templates.nix
Normal file
16
flake/templates.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{rootPath, ...}: {
|
||||
flake-parts-lib,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
flake = flake-parts-lib.mkSubmoduleOptions {
|
||||
templates = lib.mkOption {
|
||||
type = lib.types.lazyAttrsOf lib.types.raw;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
flake.templates = import (rootPath + "/templates");
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue