Remove unused services and support features

Squirtle runs bitcoind, lnd, electrs and mempool. Remove every other
service module and its packages (clightning and plugins, joinmarket,
btcpayserver/nbxplorer, rtl, liquid, lndconnect, loop, pool, charge-lnd,
fulcrum, hardware-wallets, python-packages, bitcoind_29), plus the
support features squirtle doesn't use: netns-isolation, i2p support in
bitcoind, backups, versioning, obsolete-options and the krops/nixops
deployment modules.

mempool loses its electrumServer option and always uses electrs.

Squirtle's system is unchanged on 26.05 apart from two blank lines in
bitcoin.conf, and it now evaluates on 26.11 without the i2pd patch on
branch nixos-26.11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pleb
2026-11-15 19:43:16 -08:00
co-authored by Claude Opus 5.5
parent da27f27026
commit 6e13a8b7ad
76 changed files with 8 additions and 5931 deletions
+6 -23
View File
@@ -94,19 +94,6 @@ let
default = 8999;
description = "Mempool backend port.";
};
electrumServer = mkOption {
type = types.enum [ "electrs" "fulcrum" ];
default = "electrs";
description = ''
The Electrum server to use for fetching address information.
Possible options:
- electrs:
Small database size, slow when querying new addresses.
- fulcrum:
Large database size, quickly serves arbitrary address queries.
'';
};
settings = mkOption {
type = with types; attrsOf (attrsOf anything);
example = {
@@ -170,8 +157,7 @@ let
inherit (config.services)
bitcoind
electrs
fulcrum;
electrs;
torSocket = config.services.tor.client.socksListenAddress;
@@ -240,8 +226,7 @@ in {
config = mkIf cfg.enable {
services.bitcoind.txindex = true;
services.electrs.enable = mkIf (cfg.electrumServer == "electrs" ) true;
services.fulcrum.enable = mkIf (cfg.electrumServer == "fulcrum" ) true;
services.electrs.enable = true;
services.mysql = {
enable = true;
package = pkgs.mariadb;
@@ -272,11 +257,9 @@ in {
USERNAME = bitcoind.rpc.users.public.name;
PASSWORD = "@btcRpcPassword@";
};
ELECTRUM = let
server = config.services.${cfg.electrumServer};
in {
HOST = server.address;
PORT = server.port;
ELECTRUM = {
HOST = electrs.address;
PORT = electrs.port;
TLS_ENABLED = false;
};
DATABASE = {
@@ -298,7 +281,7 @@ in {
systemd.services.mempool = rec {
wantedBy = [ "multi-user.target" ];
requires = [ "mysql.service" ];
wants = [ "${cfg.electrumServer}.service" ];
wants = [ "electrs.service" ];
after = requires ++ wants;
preStart = ''
mkdir -p '${cacheDir}/cache'