electrs: use cfg.user, cfg.group

This commit is contained in:
Erik Arvstedt 2020-03-04 18:09:00 +01:00
parent 48be5a79fa
commit 0be67c325e
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -78,7 +78,8 @@ in {
--db-dir '${cfg.dataDir}' --daemon-dir '${config.services.bitcoind.dataDir}' \
--electrum-rpc-addr=127.0.0.1:${toString cfg.port}
'';
User = "electrs";
User = cfg.user;
Group = cfg.group;
Restart = "on-failure";
RestartSec = "10s";
} // nix-bitcoin-services.defaultHardening