diff --git a/modules/core/caddy.nix b/modules/core/caddy.nix index 0558a0f..b7d885c 100755 --- a/modules/core/caddy.nix +++ b/modules/core/caddy.nix @@ -1,5 +1,8 @@ { config, pkgs, lib, ... }: +let + exposeBtcpay = config.sovran_systemsOS.web.btcpayserver; +in { services.caddy = { enable = true; @@ -95,7 +98,8 @@ $NEXTCLOUD { EOF fi - # ── BTCPay ────────────────────────────────────── + # ── BTCPay (only if web exposure is enabled) ──── + ${if exposeBtcpay then '' if [ -n "$BTCPAY" ]; then cat >> /run/caddy/Caddyfile <