electrs: use dataDir for storing extra config
This is simpler and more memory-efficient. We've also changed other services to use this appraoch. Also remove unneded `wait_for_unit` in the electrs regtest test.
This commit is contained in:
@@ -74,10 +74,8 @@ in {
|
||||
> electrs.toml
|
||||
'';
|
||||
serviceConfig = nbLib.defaultHardening // {
|
||||
RuntimeDirectory = "electrs";
|
||||
RuntimeDirectoryMode = "700";
|
||||
# electrs only uses the working directory for reading electrs.toml
|
||||
WorkingDirectory = "/run/electrs";
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
ExecStart = ''
|
||||
${config.nix-bitcoin.pkgs.electrs}/bin/electrs -vv \
|
||||
--network=${bitcoind.makeNetworkName "bitcoin" "regtest"} \
|
||||
|
||||
Reference in New Issue
Block a user