From df5abd5eab9755da2930ca86ccbff6fda2c0c35c Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 14 Jul 2022 23:45:24 +0200 Subject: [PATCH] lnd: move `wallet-unlock-password-file` setting to config There's no need to pass this option via the cmdline. --- modules/lnd.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 8e57a1f..7d99641 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -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";