From 29493f7cafd5ac8541ef932b663cfb1c7a70d0f8 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 27 Mar 2026 15:42:21 -0500 Subject: [PATCH] fixed roles --- modules/core/caddy.nix | 9 ++++++++- modules/core/role-logic.nix | 34 +++++++++++++++++++++++----------- modules/core/roles.nix | 10 +++++++++- 3 files changed, 40 insertions(+), 13 deletions(-) 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 <