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.
This commit is contained in:
@@ -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"; }
|
||||
]; }
|
||||
|
||||
Reference in New Issue
Block a user