mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-26 15:06:14 +01:00
rspamd: make sure redis is started over TCP socket
This commit is contained in:
parent
6e8142862f
commit
4f0f0128d8
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue