fixed roles

This commit is contained in:
naturallaw777 committed 2026-03-27 15:42:21 -05:00
1 parent aaed7170f5
commit 8161796fdb
3 files changed
+40 -13

No files matched your search

+8 -1
View File
@@ -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 <<EOF
@@ -105,6 +109,9 @@ $BTCPAY {
}
EOF
fi
'' else ''
# BTCPay web exposure disabled by sovran_systemsOS.web.btcpayserver = false
''}
# ── Vaultwarden ─────────────────────────────────
if [ -n "$VAULTWARDEN" ]; then