nixos/redis: user set uid, make it compatible #1076
This commit is contained in:
parent
04fc38d233
commit
b20c08d2cb
|
@ -102,6 +102,7 @@
|
|||
tcpcryptd = 93; # tcpcryptd uses a hard-coded uid. We patch it in Nixpkgs to match this choice.
|
||||
zope2 = 94;
|
||||
firebird = 95;
|
||||
redis = 96;
|
||||
|
||||
# When adding a uid, make sure it doesn't match an existing gid.
|
||||
|
||||
|
|
|
@ -177,8 +177,9 @@ in
|
|||
|
||||
config = mkIf config.services.redis.enable {
|
||||
|
||||
users.extraUsers = singleton
|
||||
users.extraUsers.redis =
|
||||
{ name = cfg.user;
|
||||
uid = config.ids.uids.redis;
|
||||
description = "Redis database user";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue