diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-08-08 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-09-12 14:59:30 +0200 |
commit | bc3bca822a32fbbc73a9d55394991cef92dba3b9 (patch) | |
tree | 04d54d294f1869dd6f874e92eb5f2c094eef3b7f /nixos/modules/services/databases/mongodb.nix | |
parent | 0f15a8f489b04a7d0086edf27920ba15fa1de0d3 (diff) | |
download | nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.gz nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.bz2 nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.lz nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.xz nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.zst nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.zip |
nixos: define the primary group of users where needed
Diffstat (limited to 'nixos/modules/services/databases/mongodb.nix')
-rw-r--r-- | nixos/modules/services/databases/mongodb.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/mongodb.nix b/nixos/modules/services/databases/mongodb.nix index db1e5fedf50..5121e0415db 100644 --- a/nixos/modules/services/databases/mongodb.nix +++ b/nixos/modules/services/databases/mongodb.nix @@ -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 ]; |