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:
parent
1a387b8b3e
commit
0119c40dfa
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue