Merge pull request #459 from shyim/data-dir-nullable-redis
modules: make dataDir nullable in redis
This commit is contained in:
commit
bb3baef6e1
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
Add a link
Reference in a new issue