From 393ab0fb3c160adfdf64786d5e9e360967dfb678 Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Sun, 3 May 2020 10:30:21 +0200 Subject: [PATCH] electrs: Remove electrs user from "bitcoinrpc" and "bitcoin" sometimes Electrs does not need to be a part of "bitcoinrpc" group because preStart electrs.toml creation is handled by PermissionsStartOnly. "bitcoin" group membership is only necessary when cfg.high-memory is enabled and electrs reads blocks directly from the blocks directory. --- modules/electrs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/electrs.nix b/modules/electrs.nix index 6e21a8d..5b62149 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -106,7 +106,7 @@ in { users.users.${cfg.user} = { description = "electrs User"; group = cfg.group; - extraGroups = [ "bitcoinrpc" "bitcoin"]; + extraGroups = optionals cfg.high-memory [ "bitcoin" ]; }; users.groups.${cfg.group} = {}; }