lnd: move `wallet-unlock-password-file` setting to config

There's no need to pass this option via the cmdline.
This commit is contained in:
Erik Arvstedt 2022-07-14 23:45:24 +02:00
parent 7e94b7eddc
commit df5abd5eab
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 3 additions and 5 deletions

View File

@ -178,6 +178,8 @@ let
bitcoind.zmqpubrawblock=${bitcoind.zmqpubrawblock}
bitcoind.zmqpubrawtx=${bitcoind.zmqpubrawtx}
wallet-unlock-password-file=${secretsDir}/lnd-wallet-password
${cfg.extraConfig}
'';
in {
@ -249,11 +251,7 @@ in {
Type = "notify";
RuntimeDirectory = "lnd"; # Only used to store custom macaroons
RuntimeDirectoryMode = "711";
ExecStart = ''
${cfg.package}/bin/lnd \
--configfile="${cfg.dataDir}/lnd.conf" \
--wallet-unlock-password-file="${secretsDir}/lnd-wallet-password"
'';
ExecStart = "${cfg.package}/bin/lnd --configfile='${cfg.dataDir}/lnd.conf'";
User = cfg.user;
TimeoutSec = "15min";
Restart = "on-failure";