mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
caddy: Follow convention of using mkEnableOption for boolean options
This commit is contained in:
parent
734602820b
commit
765b7fdd68
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue