Skip to content

Commit

Permalink
nixos/murmur: add murmur group, don't run as nogroup
Browse files Browse the repository at this point in the history
fixes #101980
  • Loading branch information
pstn committed Oct 29, 2020
1 parent c0627e5 commit fc856b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ in
#minecraft = 114; # unused
vault = 115;
#ripped = 116; # unused
#murmur = 117; # unused
murmur = 117;
foundationdb = 118;
newrelic = 119;
starbound = 120;
Expand Down
5 changes: 5 additions & 0 deletions nixos/modules/services/networking/murmur.nix
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ in
home = "/var/lib/murmur";
createHome = true;
uid = config.ids.uids.murmur;
group = "murmur";
};
users.groups.murmur = {
gid = config.ids.gids.murmur;
};

systemd.services.murmur = {
Expand All @@ -300,6 +304,7 @@ in
RuntimeDirectory = "murmur";
RuntimeDirectoryMode = "0700";
User = "murmur";
Group = "murmur";
};
};
};
Expand Down

0 comments on commit fc856b8

Please sign in to comment.