nixos: define the primary group of users where needed

This commit is contained in:
Guillaume Girol 2021-08-08 12:00:00 +00:00
parent 0f15a8f489
commit bc3bca822a
46 changed files with 150 additions and 52 deletions

View file

@ -123,9 +123,11 @@ in
users.users.mongodb = mkIf (cfg.user == "mongodb")
{ name = "mongodb";
uid = config.ids.uids.mongodb;
isSystemUser = true;
group = "mongodb";
description = "MongoDB server user";
};
users.groups.mongodb = mkIf (cfg.user == "mongodb") {};
environment.systemPackages = [ mongodb ];