diff --git a/modules/electrs.nix b/modules/electrs.nix index b503908..5d03c10 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -9,6 +9,16 @@ let in { options.services.electrs = { enable = mkEnableOption "electrs"; + address = mkOption { + type = types.str; + default = "127.0.0.1"; + description = "Address to listen for RPC connections."; + }; + port = mkOption { + type = types.port; + default = 50001; + description = "RPC port."; + }; dataDir = mkOption { type = types.path; default = "/var/lib/electrs"; @@ -31,16 +41,6 @@ in { If enabled, the electrs service will sync faster on high-memory systems (≥ 8GB). ''; }; - address = mkOption { - type = types.str; - default = "127.0.0.1"; - description = "RPC and monitoring listening address."; - }; - port = mkOption { - type = types.port; - default = 50001; - description = "RPC port."; - }; monitoringPort = mkOption { type = types.port; default = 4224; diff --git a/modules/presets/secure-node.nix b/modules/presets/secure-node.nix index 8a6bda2..6c0c95a 100644 --- a/modules/presets/secure-node.nix +++ b/modules/presets/secure-node.nix @@ -92,7 +92,6 @@ in { # electrs services.electrs = { - port = 50001; enforceTor = true; }; services.tor.hiddenServices.electrs = mkIf cfg.electrs.enable (mkHiddenService {