Merge pull request #1373 from offlinehacker/nixos/memcached/user_fix

memcached: set uid to make it work with #1076
This commit is contained in:
Michael Raskin 2013-12-14 22:55:00 -08:00
commit bdd1fea87b
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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";
};