use my module options
This commit is contained in:
parent
11fc735d23
commit
c7a1e9613f
13 changed files with 13 additions and 118 deletions
|
|
@ -5,16 +5,8 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
osbmModules.enableCaddy = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Caddy server";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.osbmModules.enableCaddy {
|
||||
(lib.mkIf config.osbmModules.services.caddy.enable {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
# package = pkgs.caddy.withPlugins {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue