This role provides a managed instance of the RabbitMQ message broker.

We provide RabbitMQ versions 3.6.5, 3.6.15 and the latest 3.7.x supported by NixOS 19.03.


The server listens for AMQP connections on the first IP of the srv interface on port 5672.

Additional configuration using the Erlang syntax can be placed in /etc/local/rabbitmq/rabbitmq.config.

We remove the guest user for security reasons.


Service users can access the rabbitmq account with sudo -iu rabbitmq to perform administrative tasks with rabbitmqctl.


The default monitoring setup checks that the RabbitMQ server is healthy and responding to AMQP connections.