---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "apache-kafka",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "serverProperties",
        position: (8, 3),
       },
      ],
     },
     IfThenElse {
      predicate: BinaryOperation {
       operator: NotEqualTo,
       operands: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (9, 8),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "serverProperties",
            position: (9, 12),
           },
          ],
         },
         default: None,
        },
        Variable {
         identifier: "null",
         position: (9, 32),
        },
       ],
       position: (9, 29),
      },
      then: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (10, 7),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "serverProperties",
          position: (10, 11),
         },
        ],
       },
       default: None,
      },
      else_: String {
       parts: [
        Raw {
         content: "# Generated by nixos\nbroker.id=",
         position: (13, 1),
        },
        Expression {
         expression: FunctionApplication {
          function: Variable {
           identifier: "toString",
           position: (14, 21),
          },
          arguments: [
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (14, 30),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "brokerId",
               position: (14, 34),
              },
             ],
            },
            default: None,
           },
          ],
         },
        },
        Raw {
         content: "\nport=",
         position: (14, 43),
        },
        Expression {
         expression: FunctionApplication {
          function: Variable {
           identifier: "toString",
           position: (15, 16),
          },
          arguments: [
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (15, 25),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "port",
               position: (15, 29),
              },
             ],
            },
            default: None,
           },
          ],
         },
        },
        Raw {
         content: "\nhost.name=",
         position: (15, 34),
        },
        Expression {
         expression: PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (16, 21),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "hostname",
             position: (16, 25),
            },
           ],
          },
          default: None,
         },
        },
        Raw {
         content: "\nlog.dirs=",
         position: (16, 34),
        },
        Expression {
         expression: FunctionApplication {
          function: Variable {
           identifier: "concatStringsSep",
           position: (17, 20),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: ",",
              position: (17, 38),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (17, 41),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "logDirs",
               position: (17, 45),
              },
             ],
            },
            default: None,
           },
          ],
         },
        },
        Raw {
         content: "\nzookeeper.connect=",
         position: (17, 53),
        },
        Expression {
         expression: PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (18, 29),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "zookeeper",
             position: (18, 33),
            },
           ],
          },
          default: None,
         },
        },
        Raw {
         content: "\n",
         position: (18, 43),
        },
        Expression {
         expression: FunctionApplication {
          function: Variable {
           identifier: "toString",
           position: (19, 11),
          },
          arguments: [
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (19, 20),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "extraProperties",
               position: (19, 24),
              },
             ],
            },
            default: None,
           },
          ],
         },
        },
        Raw {
         content: "\n",
         position: (19, 40),
        },
       ],
      },
      position: (9, 5),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "serverConfig",
        position: (22, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (22, 18),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (22, 23),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "server.properties",
          position: (22, 34),
         },
        ],
       },
       Variable {
        identifier: "serverProperties",
        position: (22, 53),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "logConfig",
        position: (23, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (23, 15),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (23, 20),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "log4j.properties",
          position: (23, 31),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (23, 49),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "log4jProperties",
           position: (23, 53),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (27, 3),
        },
        Raw {
         content: "services",
         position: (27, 11),
        },
        Raw {
         content: "apache-kafka",
         position: (27, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (28, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (28, 14),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (29, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable Apache Kafka.",
                 position: (29, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (30, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (30, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (31, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (31, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (31, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (28, 23),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "brokerId",
            position: (34, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (34, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (35, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Broker ID.",
                 position: (35, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (36, 7),
                },
               ],
              },
              UnaryOperation {
               operator: Negate,
               operand: Int {
                value: 1,
                position: (36, 18),
               },
               position: (36, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (37, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (37, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "int",
                  position: (37, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (34, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "port",
            position: (40, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (40, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (41, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Port number the broker should listen on.",
                 position: (41, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (42, 7),
                },
               ],
              },
              Int {
               value: 9092,
               position: (42, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (43, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (43, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "int",
                  position: (43, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (40, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hostname",
            position: (46, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (46, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (47, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Hostname the broker should bind to.",
                 position: (47, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (48, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "localhost",
                 position: (48, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (49, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (49, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (49, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (46, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "logDirs",
            position: (52, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (52, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (53, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Log file directories",
                 position: (53, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (54, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "/tmp/kafka-logs",
                   position: (54, 20),
                  },
                 ],
                },
               ],
               position: (54, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (55, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (55, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "listOf",
                   position: (55, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (55, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "path",
                    position: (55, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (52, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "zookeeper",
            position: (58, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (58, 17),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (59, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Zookeeper connection string",
                 position: (59, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (60, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "localhost:2181",
                 position: (60, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (61, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (61, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (61, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (58, 26),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraProperties",
            position: (64, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (64, 23),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (65, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra properties for server.properties.",
                 position: (65, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (66, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (66, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (66, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (66, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "lines",
                    position: (66, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (67, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (67, 17),
              },
             ),
            ],
            recursive: false,
            position: (64, 32),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "serverProperties",
            position: (70, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (70, 24),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (71, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Complete server.properties content. Other server.properties config\noptions will be ignored if this option is used.\n",
                 position: (72, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (75, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (75, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (75, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (75, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "lines",
                    position: (75, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (76, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (76, 17),
              },
             ),
            ],
            recursive: false,
            position: (70, 33),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "log4jProperties",
            position: (79, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (79, 23),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (80, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Kafka log4j property configuration.",
                 position: (80, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (81, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "log4j.rootLogger=INFO, stdout\n\nlog4j.appender.stdout=org.apache.log4j.ConsoleAppender\nlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout\nlog4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n\n",
                 position: (82, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (88, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (88, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "lines",
                  position: (88, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (79, 32),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "jvmOptions",
            position: (91, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (91, 18),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (92, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra command line options for the JVM running Kafka.",
                 position: (92, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (93, 7),
                },
               ],
              },
              List {
               elements: [],
               position: (93, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (94, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (94, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "listOf",
                   position: (94, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (94, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (94, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (95, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "-Djava.net.preferIPv4Stack=true",
                   position: (96, 10),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "-Dcom.sun.management.jmxremote",
                   position: (97, 10),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "-Dcom.sun.management.jmxremote.local.only=true",
                   position: (98, 10),
                  },
                 ],
                },
               ],
               position: (95, 17),
              },
             ),
            ],
            recursive: false,
            position: (91, 27),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (102, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (102, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (103, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The kafka package to use",
                 position: (103, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (104, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (104, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "apacheKafka",
                  position: (104, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (105, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (105, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.apacheKafka",
                   position: (105, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (106, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (106, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (106, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (102, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "jre",
            position: (109, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (109, 11),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (110, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The JRE with which to run Kafka",
                 position: (110, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (111, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (111, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (111, 21),
                 },
                 Raw {
                  content: "passthru",
                  position: (111, 29),
                 },
                 Raw {
                  content: "jre",
                  position: (111, 38),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (112, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (112, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.apacheKafka.passthru.jre",
                   position: (112, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (113, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (113, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (113, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (109, 20),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (27, 35),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (118, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (118, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (118, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (118, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (120, 5),
             },
             Raw {
              content: "systemPackages",
              position: (120, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (120, 35),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "package",
                 position: (120, 39),
                },
               ],
              },
              default: None,
             },
            ],
            position: (120, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (122, 5),
             },
             Raw {
              content: "users",
              position: (122, 11),
             },
             Raw {
              content: "apache-kafka",
              position: (122, 17),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "isSystemUser",
                 position: (123, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (123, 22),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "group",
                 position: (124, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "apache-kafka",
                 position: (124, 16),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (125, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Apache Kafka daemon user",
                 position: (125, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "home",
                 position: (126, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "head",
                position: (126, 14),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (126, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "logDirs",
                    position: (126, 23),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (122, 32),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (128, 5),
             },
             Raw {
              content: "groups",
              position: (128, 11),
             },
             Raw {
              content: "apache-kafka",
              position: (128, 18),
             },
            ],
           },
           Map {
            bindings: [],
            recursive: false,
            position: (128, 33),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (130, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (130, 13),
             },
             Raw {
              content: "rules",
              position: (130, 22),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "map",
             position: (130, 30),
            },
            arguments: [
             Function {
              argument: Some(
               "logDir",
              ),
              arguments: FunctionArguments {
               arguments: [],
               ellipsis: false,
              },
              definition: String {
               parts: [
                Raw {
                 content: "d '",
                 position: (130, 44),
                },
                Expression {
                 expression: Variable {
                  identifier: "logDir",
                  position: (130, 49),
                 },
                },
                Raw {
                 content: "' 0700 apache-kafka - - -",
                 position: (130, 56),
                },
               ],
              },
              position: (130, 35),
             },
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (130, 84),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "logDirs",
                 position: (130, 88),
                },
               ],
              },
              default: None,
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (132, 5),
             },
             Raw {
              content: "services",
              position: (132, 13),
             },
             Raw {
              content: "apache-kafka",
              position: (132, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (133, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Apache Kafka Daemon",
                 position: (133, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (134, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (134, 21),
                  },
                 ],
                },
               ],
               position: (134, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (135, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (135, 18),
                  },
                 ],
                },
               ],
               position: (135, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (136, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (137, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "",
                    position: (138, 1),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (138, 13),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "jre",
                        position: (138, 17),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/java \\\n  -cp \"",
                    position: (138, 21),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (139, 20),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (139, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/libs/*\" \\\n  -Dlog4j.configuration=file:",
                    position: (139, 32),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "logConfig",
                     position: (140, 42),
                    },
                   },
                   Raw {
                    content: " \\\n  ",
                    position: (140, 52),
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "toString",
                      position: (141, 15),
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (141, 24),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "jvmOptions",
                          position: (141, 28),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   },
                   Raw {
                    content: " \\\n  kafka.Kafka \\\n  ",
                    position: (141, 39),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "serverConfig",
                     position: (143, 15),
                    },
                   },
                   Raw {
                    content: "\n",
                    position: (143, 28),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (145, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "apache-kafka",
                    position: (145, 17),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "SuccessExitStatus",
                    position: (146, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "0 143",
                    position: (146, 30),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (136, 23),
              },
             ),
            ],
            recursive: false,
            position: (132, 37),
           },
          ),
         ],
         recursive: false,
         position: (118, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (25, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}