summary refs log tree commit diff
path: root/nixos/modules/services/amqp
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2019-09-25 17:49:36 +0000
committeredef <edef@edef.eu>2019-10-18 12:36:16 +0000
commit32c7f772f75bdbd848147aea640686fcb01c0ca5 (patch)
tree4bee7f6360f377b4b131c724551022e98c427bec /nixos/modules/services/amqp
parentf702ae151685e0b29f73e71dfbf8fcdcb7d903b0 (diff)
downloadnixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar.gz
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar.bz2
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar.lz
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar.xz
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.tar.zst
nixpkgs-32c7f772f75bdbd848147aea640686fcb01c0ca5.zip
nixos/rabbitmq: use a literalExample for example configItems
Diffstat (limited to 'nixos/modules/services/amqp')
-rw-r--r--nixos/modules/services/amqp/rabbitmq.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/services/amqp/rabbitmq.nix b/nixos/modules/services/amqp/rabbitmq.nix
index 38d10923494..697732426cc 100644
--- a/nixos/modules/services/amqp/rabbitmq.nix
+++ b/nixos/modules/services/amqp/rabbitmq.nix
@@ -80,10 +80,12 @@ in {
       configItems = mkOption {
         default = {};
         type = types.attrsOf types.str;
-        example = {
-          "auth_backends.1.authn" = "rabbit_auth_backend_ldap";
-          "auth_backends.1.authz" = "rabbit_auth_backend_internal";
-        };
+        example = literalExample ''
+          {
+            "auth_backends.1.authn" = "rabbit_auth_backend_ldap";
+            "auth_backends.1.authz" = "rabbit_auth_backend_internal";
+          }
+        '';
         description = ''
           Configuration options in RabbitMQ's new config file format,
           which is a simple key-value format that can not express nested