Skip to content

Commit

Permalink
electrs: Remove electrs user from "bitcoinrpc" and "bitcoin" sometimes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nixbitcoin committed May 3, 2020
1 parent b74f6f4 commit c5a95cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/electrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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} = {};
}
Expand Down

0 comments on commit c5a95cf

Please sign in to comment.