From 4f0f0128d8d4115571b3ff0ce2378ddf7de7278e Mon Sep 17 00:00:00 2001 From: DwarfMaster Date: Wed, 17 Nov 2021 17:59:32 +0100 Subject: [PATCH] rspamd: make sure redis is started over TCP socket --- mail-server/rspamd.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mail-server/rspamd.nix b/mail-server/rspamd.nix index 371edde..57e9cea 100644 --- a/mail-server/rspamd.nix +++ b/mail-server/rspamd.nix @@ -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");