simplify user and group definitions
This commit is contained in:
parent
6c69eb8576
commit
d61b185c3a
6 changed files with 7 additions and 23 deletions
|
|
@ -58,15 +58,12 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.${cfg.user} = {
|
||||
name = cfg.user;
|
||||
description = "electrs User";
|
||||
group = cfg.group;
|
||||
extraGroups = [ "bitcoinrpc" "keys" "bitcoin"];
|
||||
home = cfg.dataDir;
|
||||
};
|
||||
users.groups.electrs = {
|
||||
name = cfg.group;
|
||||
};
|
||||
users.groups.${cfg.group} = {};
|
||||
|
||||
systemd.services.electrs = {
|
||||
description = "Run electrs";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue