electrs: use cfg.user, cfg.group
This commit is contained in:
parent
48be5a79fa
commit
0be67c325e
@ -78,7 +78,8 @@ in {
|
|||||||
--db-dir '${cfg.dataDir}' --daemon-dir '${config.services.bitcoind.dataDir}' \
|
--db-dir '${cfg.dataDir}' --daemon-dir '${config.services.bitcoind.dataDir}' \
|
||||||
--electrum-rpc-addr=127.0.0.1:${toString cfg.port}
|
--electrum-rpc-addr=127.0.0.1:${toString cfg.port}
|
||||||
'';
|
'';
|
||||||
User = "electrs";
|
User = cfg.user;
|
||||||
|
Group = cfg.group;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "10s";
|
RestartSec = "10s";
|
||||||
} // nix-bitcoin-services.defaultHardening
|
} // nix-bitcoin-services.defaultHardening
|
||||||
|
Loading…
Reference in New Issue
Block a user