about summary refs log tree commit diff
path: root/nixos/modules/services/databases/memcached.nix
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-08 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2021-09-12 14:59:30 +0200
commitbc3bca822a32fbbc73a9d55394991cef92dba3b9 (patch)
tree04d54d294f1869dd6f874e92eb5f2c094eef3b7f /nixos/modules/services/databases/memcached.nix
parent0f15a8f489b04a7d0086edf27920ba15fa1de0d3 (diff)
downloadnixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.gz
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.bz2
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.lz
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.xz
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.zst
nixlib-bc3bca822a32fbbc73a9d55394991cef92dba3b9.zip
nixos: define the primary group of users where needed
Diffstat (limited to 'nixos/modules/services/databases/memcached.nix')
-rw-r--r--nixos/modules/services/databases/memcached.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/memcached.nix b/nixos/modules/services/databases/memcached.nix
index ca7b20eb049a..1c06937e2f30 100644
--- a/nixos/modules/services/databases/memcached.nix
+++ b/nixos/modules/services/databases/memcached.nix
@@ -67,7 +67,9 @@ in
     users.users = optionalAttrs (cfg.user == "memcached") {
       memcached.description = "Memcached server user";
       memcached.isSystemUser = true;
+      memcached.group = "memcached";
     };
+    users.groups = optionalAttrs (cfg.user == "memcached") { memcached = {}; };
 
     environment.systemPackages = [ memcached ];