From 700fdf6febdc6e4fff3d00482a28f3d0bebb1094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20D=2E=20Mih=C4=83il=C4=83?= Date: Fri, 23 Aug 2019 01:38:27 +0200 Subject: [PATCH] Add logdir and tor.privatekeypath to lnd.conf This will put the logs dir and tor priv keys directly in the datadir of lnd. Before this commit, they were stored in a .lnd dir inside the datadir. --- modules/lnd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/lnd.nix b/modules/lnd.nix index 686bd3f..6d1440f 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -7,6 +7,7 @@ let cfg = config.services.lnd; configFile = pkgs.writeText "lnd.conf" '' datadir=${cfg.dataDir} + logdir=${cfg.dataDir}/logs bitcoin.mainnet=1 tlscertpath=/secrets/lnd_cert tlskeypath=/secrets/lnd_key @@ -17,6 +18,7 @@ let tor.active=true tor.v3=true tor.streamisolation=true + tor.privatekeypath=${cfg.dataDir}/v3_onion_private_key bitcoind.rpcuser=${config.services.bitcoind.rpcuser} bitcoind.zmqpubrawblock=${config.services.bitcoind.zmqpubrawblock}