caddy: Follow convention of using mkEnableOption for boolean options

This commit is contained in:
SebastianStork 2025-08-31 20:34:50 +02:00
parent 734602820b
commit 765b7fdd68

View file

@ -51,8 +51,7 @@ in
{ name, ... }: { name, ... }:
{ {
options = { options = {
enable = lib.mkOption { enable = lib.mkEnableOption "" // {
type = lib.types.bool;
default = true; default = true;
}; };
domain = lib.mkOption { domain = lib.mkOption {
@ -63,8 +62,7 @@ in
type = lib.types.port; type = lib.types.port;
default = null; default = null;
}; };
tls = lib.mkOption { tls = lib.mkEnableOption "" // {
type = lib.types.bool;
default = true; default = true;
}; };
extraReverseProxyConfig = lib.mkOption { extraReverseProxyConfig = lib.mkOption {