rspamd: make sure redis is started over TCP socket

This commit is contained in:
DwarfMaster 2021-11-17 17:59:32 +01:00
parent 6e8142862f
commit 4f0f0128d8

View File

@ -99,6 +99,12 @@ in
};
services.redis.enable = true;
assertions = [
{
assertion = isNull config.services.redis.unixSocket;
message = "nixos-mailserver doesn't support redis over UNIX socket";
}
];
systemd.services.rspamd = {
requires = [ "redis.service" ] ++ (lib.optional cfg.virusScanning "clamav-daemon.service");