summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/services/redis/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/services/redis/default.nix b/modules/services/redis/default.nix
index e7e8cc4..c6d434f 100644
--- a/modules/services/redis/default.nix
+++ b/modules/services/redis/default.nix
@@ -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}
'';