mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
chore: add template for initializing new modules
This commit is contained in:
parent
6d4f103b84
commit
71f29a7e09
6
src/modules/_template/default.nix
Normal file
6
src/modules/_template/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./implementation.nix
|
||||||
|
./interface.nix
|
||||||
|
];
|
||||||
|
}
|
4
src/modules/_template/implementation.nix
Normal file
4
src/modules/_template/implementation.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
lib = config.lib;
|
||||||
|
in {
|
||||||
|
}
|
10
src/modules/_template/interface.nix
Normal file
10
src/modules/_template/interface.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
lib = config.lib;
|
||||||
|
t = lib.types;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
= lib.mkOption {
|
||||||
|
type = t.;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -4,4 +4,5 @@ includes = ["*.nix"]
|
|||||||
excludes = [
|
excludes = [
|
||||||
"overrides/nodejs/electron/*",
|
"overrides/nodejs/electron/*",
|
||||||
"src/templates/translators/*",
|
"src/templates/translators/*",
|
||||||
|
"src/modules/_template/*",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user