nix: make sure bookwyrm user has redis permissions
Co-authored-by: Abhinav Sarkar <abhinav@abhinavsarkar.net>
This commit is contained in:
parent
ed3b7c551b
commit
626dc876f4
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.services.bookwyrm;
|
||||
redisCfg = config.services.redis.servers;
|
||||
env = {
|
||||
DEBUG = if cfg.debug then "true" else "false";
|
||||
DOMAIN = cfg.domain;
|
||||
|
@ -343,6 +344,8 @@ in
|
|||
group = "bookwyrm";
|
||||
useDefaultShell = true;
|
||||
isSystemUser = true;
|
||||
extraGroups = optional cfg.activityRedis.createLocally redisCfg.bookwyrm-activity.user
|
||||
++ optional cfg.celeryRedis.createLocally redisCfg.bookwyrm-celery.user;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue