summary refs log tree commit diff
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2019-09-25 17:31:11 +0000
committeredef <edef@edef.eu>2019-09-25 17:38:00 +0000
commit429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3 (patch)
tree3b4d744313c5d0cb22c87db14d07fe654be318e5
parent1f4e9c64391d3c244541824730cee77fd464808b (diff)
downloadnixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar.gz
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar.bz2
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar.lz
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar.xz
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.tar.zst
nixpkgs-429644bf4c1fe1f6ed5c618a98ce944f4d5f95a3.zip
nixos/rabbitmq: use an attrset for example configItems
-rw-r--r--nixos/modules/services/amqp/rabbitmq.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/services/amqp/rabbitmq.nix b/nixos/modules/services/amqp/rabbitmq.nix
index 302b94de196..38d10923494 100644
--- a/nixos/modules/services/amqp/rabbitmq.nix
+++ b/nixos/modules/services/amqp/rabbitmq.nix
@@ -80,12 +80,10 @@ 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 = {
+          "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