diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2013-12-13 10:05:36 +0100 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2013-12-13 10:09:08 +0100 |
commit | 24e2ef512682a4c86c9b2f22c3412fbf74639cea (patch) | |
tree | eba24c2b37bca2356326c17c362b7a5ea04ef081 /nixos/modules | |
parent | ed9ce850fd317e38295b7a441c580f9678b51ca6 (diff) | |
download | nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar.gz nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar.bz2 nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar.lz nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar.xz nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.tar.zst nixpkgs-24e2ef512682a4c86c9b2f22c3412fbf74639cea.zip |
memcached: set uid to make it work with #1076
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/misc/ids.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/databases/memcached.nix | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index ccd75d5b915..6f2666e4ae5 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 a0e264f2299..505253229c9 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"; }; |