diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 364a1e9..cb8244d 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -414,6 +414,8 @@ in { # Enable RPC access for group postStart = '' chmod g=r '${cfg.dataDir}/${optionalString cfg.regtest "regtest/"}.cookie' + '' + (optionalString cfg.regtest) '' + chmod g=x '${cfg.dataDir}/regtest' ''; serviceConfig = nbLib.defaultHardening // {