Hacker symbol

June 7, 2022 ~ 1 min read

User Groups with NixOS


User groups are not created automatically with:

users.users."dendrite" = {
  group = "dendrite";
  isSystemUser = true;
};
# id dendrite
uid=996(dendrite) gid=65534(nogroup) groups=65534(nogroup)

You need:

users.groups.dendrite = {};
users.users."dendrite" = {
  group = "dendrite";
  isSystemUser = true;
};

which gives you:

# id dendrite
uid=996(dendrite) gid=994(dendrite) groups=994(dendrite)

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.