mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 16:18:52 +03:00
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:
parent
7e94b7eddc
commit
df5abd5eab
@ -178,6 +178,8 @@ let
|
|||||||
bitcoind.zmqpubrawblock=${bitcoind.zmqpubrawblock}
|
bitcoind.zmqpubrawblock=${bitcoind.zmqpubrawblock}
|
||||||
bitcoind.zmqpubrawtx=${bitcoind.zmqpubrawtx}
|
bitcoind.zmqpubrawtx=${bitcoind.zmqpubrawtx}
|
||||||
|
|
||||||
|
wallet-unlock-password-file=${secretsDir}/lnd-wallet-password
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
@ -249,11 +251,7 @@ in {
|
|||||||
Type = "notify";
|
Type = "notify";
|
||||||
RuntimeDirectory = "lnd"; # Only used to store custom macaroons
|
RuntimeDirectory = "lnd"; # Only used to store custom macaroons
|
||||||
RuntimeDirectoryMode = "711";
|
RuntimeDirectoryMode = "711";
|
||||||
ExecStart = ''
|
ExecStart = "${cfg.package}/bin/lnd --configfile='${cfg.dataDir}/lnd.conf'";
|
||||||
${cfg.package}/bin/lnd \
|
|
||||||
--configfile="${cfg.dataDir}/lnd.conf" \
|
|
||||||
--wallet-unlock-password-file="${secretsDir}/lnd-wallet-password"
|
|
||||||
'';
|
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
TimeoutSec = "15min";
|
TimeoutSec = "15min";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
Loading…
Reference in New Issue
Block a user