Skip to content

Commit

Permalink
Merge pull request #1452 from cachix/fix-1440
Browse files Browse the repository at this point in the history
redis: prevent infinite recursion when port is set to an env var
  • Loading branch information
domenkozar authored Sep 17, 2024
2 parents 1f55f89 + 6128265 commit 08dd75c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/services/redis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ in

env = {
REDISDATA = config.env.DEVENV_STATE + "/redis";
} // optionalAttrs (cfg.port == 0) { inherit REDIS_UNIX_SOCKET; };
REDIS_UNIX_SOCKET = if cfg.port == 0 then REDIS_UNIX_SOCKET else null;
};

processes.redis = {
exec = "${startScript}/bin/start-redis";
Expand Down

0 comments on commit 08dd75c

Please sign in to comment.