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");