bitcoind: set onionPort in bitcoind module

This removes the module-level dependency from onion-services to
bitcoind.
Due to the `or false` fallback, there's no dependency added in
the reverse direction.

In particular, this allows us to not add a dependency on liquidd in
the following commit.
This commit is contained in:
Erik Arvstedt 2021-10-28 22:23:24 +02:00
parent 20d4240919
commit cc3d43f4e9
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 3 additions and 5 deletions

View file

@ -118,10 +118,6 @@ in {
externalPort = 80;
};
};
# When the bitcoind onion service is enabled, add an onion-tagged socket
# to distinguish local connections from Tor connections
services.bitcoind.onionPort = mkIf (cfg.bitcoind.enable or false) 8334;
}
];
}