diff --git a/modules/electrs.nix b/modules/electrs.nix index 6e21a8dad..1e13cfc13 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 = mkIf cfg.high-memory [ "bitcoin" ]; }; users.groups.${cfg.group} = {}; }