feat: custom lib
This commit is contained in:
parent
d3c62bce06
commit
bd19395d69
2 changed files with 30 additions and 0 deletions
|
@ -95,6 +95,13 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake = {
|
||||
### Custom Library ###
|
||||
lib.marleyos = {
|
||||
module = ./lib/module.nix;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
inputs = {
|
||||
|
|
23
lib/module.nix
Normal file
23
lib/module.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
_: {
|
||||
enabled = {
|
||||
## Quickly enable an option.
|
||||
##
|
||||
## ```nix
|
||||
## services.nginx = enabled;
|
||||
## ```
|
||||
##
|
||||
#@ true
|
||||
enable = true;
|
||||
};
|
||||
|
||||
disabled = {
|
||||
## Quickly disable an option.
|
||||
##
|
||||
## ```nix
|
||||
## services.nginx = enabled;
|
||||
## ```
|
||||
##
|
||||
#@ false
|
||||
enable = false;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue