From 2f246153d4704de3752362a21f46775b56f0bfda Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 15 Jan 2026 22:18:22 +0100 Subject: [PATCH] caddy: Add `extraConfig` option --- modules/system/services/caddy.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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; + }; }; } )