From abd32cde3004175550b8987addfce94518550904 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 16 Oct 2020 17:42:59 +0200 Subject: [PATCH] clightning: enable config file read access for group Enables lightning-cli group access when nonstandard config options are set. --- modules/clightning.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/clightning.nix b/modules/clightning.nix index 7c60c93..3cb4131 100644 --- a/modules/clightning.nix +++ b/modules/clightning.nix @@ -123,7 +123,7 @@ in { chown -R '${cfg.user}:${cfg.group}' '${cfg.dataDir}' # The RPC socket has to be removed otherwise we might have stale sockets rm -f ${cfg.dataDir}/bitcoin/lightning-rpc - chmod 600 ${cfg.dataDir}/config + chmod 640 ${cfg.dataDir}/config echo "bitcoin-rpcpassword=$(cat ${config.nix-bitcoin.secretsDir}/bitcoin-rpcpassword-public)" >> '${cfg.dataDir}/config' ${optionalString cfg.announce-tor "echo announce-addr=$(cat /var/lib/onion-chef/clightning/clightning) >> '${cfg.dataDir}/config'"} '';