diff --git a/modules/system/services/caddy.nix b/modules/system/services/caddy.nix index 6be5904..99f0200 100644 --- a/modules/system/services/caddy.nix +++ b/modules/system/services/caddy.nix @@ -23,6 +23,7 @@ let domain, port, files, + extraConfig, ... }: lib.nameValuePair domain { @@ -43,6 +44,7 @@ let encode file_server '') + (lib.optionalString (extraConfig != null) extraConfig) ]; }; in @@ -73,6 +75,10 @@ in type = lib.types.nullOr lib.types.path; default = null; }; + extraConfig = lib.mkOption { + type = lib.types.nullOr lib.types.lines; + default = null; + }; }; } )