diff --git a/nixos/modules/services/web-apps/immich.nix b/nixos/modules/services/web-apps/immich.nix index a8a222974fdc..7973adccb796 100644 --- a/nixos/modules/services/web-apps/immich.nix +++ b/nixos/modules/services/web-apps/immich.nix @@ -227,7 +227,6 @@ in services.redis.servers = mkIf cfg.redis.enable { immich = { enable = true; - user = cfg.user; port = cfg.redis.port; bind = mkIf (!isRedisUnixSocket) cfg.redis.host; }; @@ -286,6 +285,10 @@ in RuntimeDirectory = "immich"; User = cfg.user; Group = cfg.group; + # ensure that immich-server has permission to connect to the redis socket. + SupplementaryGroups = mkIf (cfg.redis.enable && isRedisUnixSocket) [ + config.services.redis.servers.immich.group + ]; }; };