feat: custom lib

This commit is contained in:
punkfairie 2025-05-25 12:10:55 -07:00
parent d3c62bce06
commit bd19395d69
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 30 additions and 0 deletions

View file

@ -95,6 +95,13 @@
};
};
};
flake = {
### Custom Library ###
lib.marleyos = {
module = ./lib/module.nix;
};
};
};
inputs = {

23
lib/module.nix Normal file
View 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;
};
}