From 24e2ef512682a4c86c9b2f22c3412fbf74639cea Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Fri, 13 Dec 2013 10:05:36 +0100 Subject: [PATCH] memcached: set uid to make it work with #1076 --- nixos/modules/misc/ids.nix | 1 + nixos/modules/services/databases/memcached.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index ccd75d5b9158..6f2666e4ae54 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -108,6 +108,7 @@ haproxy = 97; mongodb = 98; openldap = 99; + memcached = 100; # When adding a uid, make sure it doesn't match an existing gid. diff --git a/nixos/modules/services/databases/memcached.nix b/nixos/modules/services/databases/memcached.nix index a0e264f22990..505253229c9c 100644 --- a/nixos/modules/services/databases/memcached.nix +++ b/nixos/modules/services/databases/memcached.nix @@ -68,8 +68,9 @@ in config = mkIf config.services.memcached.enable { - users.extraUsers = singleton + users.extraUsers.memcached = { name = cfg.user; + uid = config.ids.uids.memcached; description = "Memcached server user"; };