From 0be67c325e29f3ef6826fd67c3f0433791be48dc Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 4 Mar 2020 18:09:00 +0100 Subject: [PATCH] electrs: use cfg.user, cfg.group --- modules/electrs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/electrs.nix b/modules/electrs.nix index 3ca7899..3cd21a2 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -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