We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d90740 commit ae6c8caCopy full SHA for ae6c8ca
dev/flake.nix
@@ -32,6 +32,10 @@
32
maxMemory = 100;
33
port = 11212;
34
};
35
+ redisConfig = {
36
+ maxMemory = memcachedConfig.maxMemory;
37
+ port = 6379;
38
+ };
39
in
40
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
41
systems = import inputs.systems;
@@ -91,6 +95,7 @@
91
95
apcu
92
96
imagick
93
97
memcached
98
+ redis
94
99
]
100
++ (if enableXDebug then [ xdebug ] else [ ])
101
);
@@ -282,6 +287,13 @@
282
287
package = php;
283
288
phpOptions = phpOptions;
284
289
290
+ services.redis."redis1" = {
291
+ enable = true;
292
+ port = redisConfig.port;
293
+ extraConfig = ''
294
+ maxmemory ${toString redisConfig.maxMemory}mb
295
+ '';
296
285
297
settings.processes."nginx1".depends_on."phpfpm1".condition = "process_healthy";
286
298
settings.processes.test =
299
let
0 commit comments