---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "options",
    default: None,
   },
  ],
  ellipsis: false,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "prometheus",
         position: (6, 25),
        },
        Raw {
         content: "exporters",
         position: (6, 36),
        },
        Raw {
         content: "unbound",
         position: (6, 46),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "port",
         position: (9, 3),
        },
       ],
      },
      to: Int {
       value: 9167,
       position: (9, 10),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "extraOpts",
         position: (10, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "fetchType",
            position: (11, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (11, 17),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (13, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (13, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "enum",
                   position: (13, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "tcp",
                     position: (13, 28),
                    },
                   ],
                   position: (13, 27),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "uds",
                     position: (13, 34),
                    },
                   ],
                   position: (13, 33),
                  },
                 ],
                 position: (13, 25),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (14, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "uds",
                 position: (14, 18),
                },
               ],
               position: (14, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (15, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Which methods the exporter uses to get the information from unbound.\n",
                 position: (16, 1),
                },
               ],
               position: (15, 21),
              },
             },
            ],
            recursive: false,
            position: (11, 26),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "telemetryPath",
            position: (20, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (20, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (21, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (21, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (21, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (22, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/metrics",
                 position: (22, 18),
                },
               ],
               position: (22, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (23, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Path under which to expose metrics.\n",
                 position: (24, 1),
                },
               ],
               position: (23, 21),
              },
             },
            ],
            recursive: false,
            position: (20, 30),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "controlInterface",
            position: (28, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (28, 24),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (29, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (29, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (29, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (29, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "str",
                    position: (29, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (30, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (30, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (31, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/run/unbound/unbound.socket",
                 position: (31, 18),
                },
               ],
               position: (31, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (32, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Path to the unbound socket for uds mode or the control interface port for tcp mode.\n\nExample:\n  uds-mode: /run/unbound/unbound.socket\n  tcp-mode: 127.0.0.1:8953\n",
                 position: (33, 1),
                },
               ],
               position: (32, 21),
              },
             },
            ],
            recursive: false,
            position: (28, 33),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (10, 15),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "serviceOpts",
         position: (42, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkMerge",
        position: (42, 17),
       },
       arguments: [
        Parentheses {
         expression: BinaryOperation {
          operator: Concatenation,
          operands: [
           List {
            elements: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "serviceConfig",
                   position: (43, 5),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "ExecStart",
                      position: (44, 7),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "",
                      position: (45, 1),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (45, 11),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "prometheus-unbound-exporter",
                          position: (45, 16),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/unbound-telemetry \\\n  ",
                      position: (45, 44),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (46, 13),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "fetchType",
                          position: (46, 17),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: " \\\n  --bind ",
                      position: (46, 27),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (47, 20),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "listenAddress",
                          position: (47, 24),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: ":",
                      position: (47, 38),
                     },
                     Interpolation {
                      expression: FunctionApplication {
                       function: Variable {
                        identifier: "toString",
                        position: (47, 41),
                       },
                       arguments: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (47, 50),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "port",
                            position: (47, 54),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                      },
                     },
                     Raw {
                      content: " \\\n  --path ",
                      position: (47, 59),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (48, 20),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "telemetryPath",
                          position: (48, 24),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: " \\\n  ",
                      position: (48, 38),
                     },
                     Interpolation {
                      expression: FunctionApplication {
                       function: Variable {
                        identifier: "optionalString",
                        position: (49, 13),
                       },
                       arguments: [
                        Parentheses {
                         expression: BinaryOperation {
                          operator: NotEqualTo,
                          operands: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (49, 29),
                            },
                            attribute_path: AttributePath {
                             parts: [
                              Raw {
                               content: "controlInterface",
                               position: (49, 33),
                              },
                             ],
                            },
                            default: None,
                           },
                           Variable {
                            identifier: "null",
                            position: (49, 53),
                           },
                          ],
                          position: (49, 50),
                         },
                         position: (49, 28),
                        },
                        String {
                         parts: [
                          Raw {
                           content: "--control-interface ",
                           position: (49, 60),
                          },
                          Interpolation {
                           expression: PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (49, 82),
                            },
                            attribute_path: AttributePath {
                             parts: [
                              Raw {
                               content: "controlInterface",
                               position: (49, 86),
                              },
                             ],
                            },
                            default: None,
                           },
                          },
                         ],
                         position: (49, 59),
                        },
                       ],
                      },
                     },
                     Raw {
                      content: " \\\n  ",
                      position: (49, 105),
                     },
                     Interpolation {
                      expression: FunctionApplication {
                       function: Variable {
                        identifier: "toString",
                        position: (50, 13),
                       },
                       arguments: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (50, 22),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "extraFlags",
                            position: (50, 26),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                      },
                     },
                     Raw {
                      content: "\n",
                      position: (50, 37),
                     },
                    ],
                    position: (44, 19),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "RestrictAddressFamilies",
                      position: (52, 7),
                     },
                    ],
                   },
                   to: List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "AF_UNIX",
                        position: (54, 10),
                       },
                      ],
                      position: (54, 9),
                     },
                    ],
                    position: (52, 33),
                   },
                  },
                 ],
                 recursive: false,
                 position: (43, 21),
                },
               },
              ],
              recursive: false,
              position: (42, 27),
             },
            ],
            position: (42, 26),
           },
           List {
            elements: [
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "mkIf",
                position: (58, 6),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (58, 11),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "services",
                    position: (58, 18),
                   },
                   Raw {
                    content: "unbound",
                    position: (58, 27),
                   },
                   Raw {
                    content: "enable",
                    position: (58, 35),
                   },
                  ],
                 },
                 default: None,
                },
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "after",
                      position: (59, 7),
                     },
                    ],
                   },
                   to: List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "unbound.service",
                        position: (59, 18),
                       },
                      ],
                      position: (59, 17),
                     },
                    ],
                    position: (59, 15),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "requires",
                      position: (60, 7),
                     },
                    ],
                   },
                   to: List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "unbound.service",
                        position: (60, 21),
                       },
                      ],
                      position: (60, 20),
                     },
                    ],
                    position: (60, 18),
                   },
                  },
                 ],
                 recursive: false,
                 position: (58, 42),
                },
               ],
              },
              position: (58, 5),
             },
            ],
            position: (57, 9),
           },
          ],
          position: (57, 6),
         },
         position: (42, 25),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (8, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}