From ffd20298523b534e19ed8d59ab386bd4b13c1a11 Mon Sep 17 00:00:00 2001 From: Sovran Systems <99053422+naturallaw777@users.noreply.github.com> Date: Tue, 28 Apr 2026 17:49:25 -0500 Subject: [PATCH] fix: disable BTCPayServer by default in node-only mode The BTCPayServer hub entry was using `cfg.services.bitcoin` as its `enabled` flag, which is `true` in node mode. This caused the Hub UI to show BTCPayServer as enabled even though the underlying NixOS service is correctly gated on `cfg.web.btcpayserver` (which defaults to `false` for the node role via role-logic.nix). Change the enabled field to `cfg.web.btcpayserver` so the Hub UI accurately reflects the service state and BTCPayServer is disabled by default on a fresh node-only install. --- modules/core/sovran-hub.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/sovran-hub.nix b/modules/core/sovran-hub.nix index c253755..e8400b4 100644 --- a/modules/core/sovran-hub.nix +++ b/modules/core/sovran-hub.nix @@ -51,7 +51,7 @@ let { label = "Local Network"; file = "/var/lib/secrets/internal-ip"; prefix = "http://"; suffix = ":3051"; } { label = "Password"; file = "/etc/nix-bitcoin-secrets/rtl-password"; } ]; } - { name = "BTCPayserver"; unit = "btcpayserver.service"; type = "system"; icon = "btcpayserver"; enabled = cfg.services.bitcoin; category = "bitcoin-apps"; credentials = [ + { name = "BTCPayserver"; unit = "btcpayserver.service"; type = "system"; icon = "btcpayserver"; enabled = cfg.web.btcpayserver; category = "bitcoin-apps"; credentials = [ { label = "URL"; file = "/var/lib/domains/btcpayserver"; prefix = "https://"; } { label = "Note"; value = "Create your admin account on first visit"; } ]; }