Merge pull request #1182 from offlinehacker/nixos/mongodb/userfix
nixos/mongodb: set static uid to work with #1076
This commit is contained in:
commit
b3ea42462c
@ -106,6 +106,7 @@
|
|||||||
firebird = 95;
|
firebird = 95;
|
||||||
redis = 96;
|
redis = 96;
|
||||||
haproxy = 97;
|
haproxy = 97;
|
||||||
|
mongodb = 98;
|
||||||
|
|
||||||
# When adding a uid, make sure it doesn't match an existing gid.
|
# When adding a uid, make sure it doesn't match an existing gid.
|
||||||
|
|
||||||
|
@ -90,8 +90,9 @@ in
|
|||||||
|
|
||||||
config = mkIf config.services.mongodb.enable {
|
config = mkIf config.services.mongodb.enable {
|
||||||
|
|
||||||
users.extraUsers = singleton
|
users.extraUsers.mongodb = mkIf (cfg.user == "mongodb")
|
||||||
{ name = cfg.user;
|
{ name = "mongodb";
|
||||||
|
uid = config.ids.uids.mongodb;
|
||||||
description = "MongoDB server user";
|
description = "MongoDB server user";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user