bitcoind: host behind tor

This commit is contained in:
2024-01-04 16:20:28 +00:00
parent 276de5d662
commit 7378d6c5b2
3 changed files with 48 additions and 11 deletions

View File

@@ -143,7 +143,8 @@ in
config = lib.mkIf cfg.enable {
systemd.services.clightning = {
path = [ bitcoind.package ];
wantedBy = [ "multi-user.target" ];
# note the wantedBy bitcoind: this should make it so that a bitcoind restart causes clightning to also restart (instead of to only stop)
wantedBy = [ "bitcoind-${cfg.bitcoindName}.service" "multi-user.target" ];
requires = [ "bitcoind-${cfg.bitcoindName}.service" ];
after = [ "bitcoind-${cfg.bitcoindName}.service" ];