From 50a2f3fdce2cf89fc4c6e84a422a18cef3362937 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Thu, 7 Nov 2013 11:25:14 +0100 Subject: nixos/mongodb: set static uid to work with #1076 --- nixos/modules/services/databases/mongodb.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nixos/modules/services/databases/mongodb.nix') diff --git a/nixos/modules/services/databases/mongodb.nix b/nixos/modules/services/databases/mongodb.nix index d6299415893..213a60687b2 100644 --- a/nixos/modules/services/databases/mongodb.nix +++ b/nixos/modules/services/databases/mongodb.nix @@ -90,8 +90,9 @@ in config = mkIf config.services.mongodb.enable { - users.extraUsers = singleton - { name = cfg.user; + users.extraUsers.mongodb = mkIf (cfg.user == "mongodb") + { name = "mongodb"; + uid = config.ids.uids.mongodb; description = "MongoDB server user"; }; -- cgit 1.4.1