1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

modules: make dataDir nullable in redis

This commit is contained in:
Soner Sayakci 2022-04-26 14:04:02 +02:00
parent 1a387b8b3e
commit 0119c40dfa
No known key found for this signature in database
GPG key ID: 9C1024313354ABDE

View file

@ -22,7 +22,7 @@ in
};
services.redis.dataDir = mkOption {
type = types.path;
type = types.nullOr types.path;
default = "/var/lib/redis";
description = "Data directory for the redis database.";
};
@ -73,7 +73,7 @@ in
port ${toString cfg.port}
${optionalString (cfg.bind != null) "bind ${cfg.bind}"}
${optionalString (cfg.unixSocket != null) "unixsocket ${cfg.unixSocket}"}
dir ${cfg.dataDir}
${optionalString (cfg.dataDir != null) "dir ${cfg.dataDir}"}
appendOnly ${if cfg.appendOnly then "yes" else "no"}
${cfg.extraConfig}
'';