---
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: "mail",
         position: (6, 46),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configurationFile",
        position: (8, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 23),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (8, 28),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "prometheus-mail-exporter.conf",
          position: (8, 39),
         },
        ],
        position: (8, 38),
       },
       Parentheses {
        expression: FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "builtins",
           position: (8, 71),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "toJSON",
             position: (8, 80),
            },
           ],
          },
          default: None,
         },
         arguments: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "mapAttrs'",
             position: (10, 5),
            },
            arguments: [
             Parentheses {
              expression: Function {
               argument: Simple {
                identifier: "name",
               },
               definition: Function {
                argument: Simple {
                 identifier: "value",
                },
                definition: IfThenElse {
                 predicate: BinaryOperation {
                  operator: EqualTo,
                  operands: [
                   Variable {
                    identifier: "name",
                    position: (11, 10),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "servers",
                      position: (11, 19),
                     },
                    ],
                    position: (11, 18),
                   },
                  ],
                  position: (11, 15),
                 },
                 then: FunctionApplication {
                  function: Variable {
                   identifier: "nameValuePair",
                   position: (12, 12),
                  },
                  arguments: [
                   Parentheses {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "toLower",
                      position: (12, 27),
                     },
                     arguments: [
                      Variable {
                       identifier: "name",
                       position: (12, 35),
                      },
                     ],
                    },
                    position: (12, 26),
                   },
                   Parentheses {
                    expression: FunctionApplication {
                     function: Parentheses {
                      expression: FunctionApplication {
                       function: Variable {
                        identifier: "map",
                        position: (13, 11),
                       },
                       arguments: [
                        Parentheses {
                         expression: Function {
                          argument: Simple {
                           identifier: "srv",
                          },
                          definition: Parentheses {
                           expression: FunctionApplication {
                            function: Variable {
                             identifier: "mapAttrs'",
                             position: (13, 22),
                            },
                            arguments: [
                             Parentheses {
                              expression: Function {
                               argument: Simple {
                                identifier: "n",
                               },
                               definition: Function {
                                argument: Simple {
                                 identifier: "v",
                                },
                                definition: FunctionApplication {
                                 function: Variable {
                                  identifier: "nameValuePair",
                                  position: (13, 39),
                                 },
                                 arguments: [
                                  Parentheses {
                                   expression: FunctionApplication {
                                    function: Variable {
                                     identifier: "toLower",
                                     position: (13, 54),
                                    },
                                    arguments: [
                                     Variable {
                                      identifier: "n",
                                      position: (13, 62),
                                     },
                                    ],
                                   },
                                   position: (13, 53),
                                  },
                                  Variable {
                                   identifier: "v",
                                   position: (13, 65),
                                  },
                                 ],
                                },
                                position: (13, 36),
                               },
                               position: (13, 33),
                              },
                              position: (13, 32),
                             },
                             Parentheses {
                              expression: FunctionApplication {
                               function: Variable {
                                identifier: "filterAttrs",
                                position: (14, 12),
                               },
                               arguments: [
                                Parentheses {
                                 expression: Function {
                                  argument: Simple {
                                   identifier: "n",
                                  },
                                  definition: Function {
                                   argument: Simple {
                                    identifier: "v",
                                   },
                                   definition: UnaryOperation {
                                    operator: Not,
                                    operand: Parentheses {
                                     expression: BinaryOperation {
                                      operator: LogicalOr,
                                      operands: [
                                       BinaryOperation {
                                        operator: EqualTo,
                                        operands: [
                                         Variable {
                                          identifier: "n",
                                          position: (14, 33),
                                         },
                                         String {
                                          parts: [
                                           Raw {
                                            content: "_module",
                                            position: (14, 39),
                                           },
                                          ],
                                          position: (14, 38),
                                         },
                                        ],
                                        position: (14, 35),
                                       },
                                       BinaryOperation {
                                        operator: EqualTo,
                                        operands: [
                                         Variable {
                                          identifier: "v",
                                          position: (14, 51),
                                         },
                                         Variable {
                                          identifier: "null",
                                          position: (14, 56),
                                         },
                                        ],
                                        position: (14, 53),
                                       },
                                      ],
                                      position: (14, 48),
                                     },
                                     position: (14, 32),
                                    },
                                    position: (14, 31),
                                   },
                                   position: (14, 28),
                                  },
                                  position: (14, 25),
                                 },
                                 position: (14, 24),
                                },
                                Variable {
                                 identifier: "srv",
                                 position: (14, 63),
                                },
                               ],
                              },
                              position: (14, 11),
                             },
                            ],
                           },
                           position: (13, 21),
                          },
                          position: (13, 16),
                         },
                         position: (13, 15),
                        },
                       ],
                      },
                      position: (13, 10),
                     },
                     arguments: [
                      Variable {
                       identifier: "value",
                       position: (15, 13),
                      },
                     ],
                    },
                    position: (13, 9),
                   },
                  ],
                 },
                 else_: FunctionApplication {
                  function: Variable {
                   identifier: "nameValuePair",
                   position: (16, 12),
                  },
                  arguments: [
                   Parentheses {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "toLower",
                      position: (16, 27),
                     },
                     arguments: [
                      Variable {
                       identifier: "name",
                       position: (16, 35),
                      },
                     ],
                    },
                    position: (16, 26),
                   },
                   Variable {
                    identifier: "value",
                    position: (16, 41),
                   },
                  ],
                 },
                 position: (11, 7),
                },
                position: (10, 22),
               },
               position: (10, 16),
              },
              position: (10, 15),
             },
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "filterAttrs",
                position: (17, 8),
               },
               arguments: [
                Parentheses {
                 expression: Function {
                  argument: Simple {
                   identifier: "n",
                  },
                  definition: Function {
                   argument: Simple {
                    identifier: "_",
                   },
                   definition: UnaryOperation {
                    operator: Not,
                    operand: Parentheses {
                     expression: BinaryOperation {
                      operator: EqualTo,
                      operands: [
                       Variable {
                        identifier: "n",
                        position: (17, 29),
                       },
                       String {
                        parts: [
                         Raw {
                          content: "_module",
                          position: (17, 35),
                         },
                        ],
                        position: (17, 34),
                       },
                      ],
                      position: (17, 31),
                     },
                     position: (17, 28),
                    },
                    position: (17, 27),
                   },
                   position: (17, 24),
                  },
                  position: (17, 21),
                 },
                 position: (17, 20),
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (17, 46),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "configuration",
                    position: (17, 50),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
              position: (17, 7),
             },
            ],
           },
           position: (8, 87),
          },
         ],
        },
        position: (8, 70),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "serverOptions",
        position: (20, 3),
       },
       Raw {
        content: "options",
        position: (20, 17),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "name",
           position: (21, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (21, 12),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (22, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (22, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (22, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (23, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Value for label 'configname' which will be added to all metrics.\n",
                position: (24, 1),
               },
              ],
              position: (23, 21),
             },
            },
           ],
           recursive: false,
           position: (21, 21),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "server",
           position: (27, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (27, 14),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (28, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (28, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (28, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (29, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Hostname of the server that should be probed.\n",
                position: (30, 1),
               },
              ],
              position: (29, 21),
             },
            },
           ],
           recursive: false,
           position: (27, 23),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "port",
           position: (33, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (33, 12),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (34, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (34, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "int",
                 position: (34, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (35, 7),
               },
              ],
             },
             to: Int {
              value: 587,
              position: (35, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (36, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Port to use for SMTP.\n",
                position: (37, 1),
               },
              ],
              position: (36, 21),
             },
            },
           ],
           recursive: false,
           position: (33, 21),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "from",
           position: (40, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (40, 12),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (41, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (41, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (41, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (42, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "exporteruser@domain.tld",
                position: (42, 18),
               },
              ],
              position: (42, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (43, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Content of 'From' Header for probing mails.\n",
                position: (44, 1),
               },
              ],
              position: (43, 21),
             },
            },
           ],
           recursive: false,
           position: (40, 21),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "to",
           position: (47, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (47, 10),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (48, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (48, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (48, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (49, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "exporteruser@domain.tld",
                position: (49, 18),
               },
              ],
              position: (49, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (50, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Content of 'To' Header for probing mails.\n",
                position: (51, 1),
               },
              ],
              position: (50, 21),
             },
            },
           ],
           recursive: false,
           position: (47, 19),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "detectionDir",
           position: (54, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (54, 20),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (55, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (55, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "path",
                 position: (55, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (56, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "/var/spool/mail/exporteruser/new",
                position: (56, 18),
               },
              ],
              position: (56, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (57, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Directory in which new mails for the exporter user are placed.\nNote that this needs to exist when the exporter starts.\n",
                position: (58, 1),
               },
              ],
              position: (57, 21),
             },
            },
           ],
           recursive: false,
           position: (54, 29),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "login",
           position: (62, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (62, 13),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (63, 7),
               },
              ],
             },
             to: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (63, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "nullOr",
                  position: (63, 20),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (63, 27),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "str",
                   position: (63, 33),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (64, 7),
               },
              ],
             },
             to: Variable {
              identifier: "null",
              position: (64, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (65, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "exporteruser@domain.tld",
                position: (65, 18),
               },
              ],
              position: (65, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (66, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Username to use for SMTP authentication.\n",
                position: (67, 1),
               },
              ],
              position: (66, 21),
             },
            },
           ],
           recursive: false,
           position: (62, 22),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "passphrase",
           position: (70, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (70, 18),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (71, 7),
               },
              ],
             },
             to: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (71, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "nullOr",
                  position: (71, 20),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (71, 27),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "str",
                   position: (71, 33),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (72, 7),
               },
              ],
             },
             to: Variable {
              identifier: "null",
              position: (72, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (73, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Password to use for SMTP authentication.\n",
                position: (74, 1),
               },
              ],
              position: (73, 21),
             },
            },
           ],
           recursive: false,
           position: (70, 27),
          },
         ],
        },
       },
      ],
      recursive: false,
      position: (20, 27),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "exporterOptions",
        position: (79, 3),
       },
       Raw {
        content: "options",
        position: (79, 19),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "monitoringInterval",
           position: (80, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (80, 26),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (81, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (81, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (81, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (82, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "10s",
                position: (82, 18),
               },
              ],
              position: (82, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (83, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Time interval between two probe attempts.\n",
                position: (84, 1),
               },
              ],
              position: (83, 21),
             },
            },
           ],
           recursive: false,
           position: (80, 35),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "mailCheckTimeout",
           position: (87, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (87, 24),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (88, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (88, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "str",
                 position: (88, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (89, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Timeout until mails are considered \"didn't make it\".\n",
                position: (90, 1),
               },
              ],
              position: (89, 21),
             },
            },
           ],
           recursive: false,
           position: (87, 33),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "disableFileDeletion",
           position: (93, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (93, 27),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (94, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "types",
               position: (94, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "bool",
                 position: (94, 20),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (95, 7),
               },
              ],
             },
             to: Variable {
              identifier: "false",
              position: (95, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (96, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Disables the exporter's function to delete probing mails.\n",
                position: (97, 1),
               },
              ],
              position: (96, 21),
             },
            },
           ],
           recursive: false,
           position: (93, 36),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "servers",
           position: (100, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (100, 15),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (101, 7),
               },
              ],
             },
             to: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (101, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "listOf",
                  position: (101, 20),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               Parentheses {
                expression: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (101, 28),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "submodule",
                     position: (101, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Variable {
                   identifier: "serverOptions",
                   position: (101, 44),
                  },
                 ],
                },
                position: (101, 27),
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (102, 7),
               },
              ],
             },
             to: List {
              elements: [],
              position: (102, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "example",
                position: (103, 7),
               },
              ],
             },
             to: FunctionApplication {
              function: Variable {
               identifier: "literalExpression",
               position: (103, 17),
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: "[ {\n  name = \"testserver\";\n  server = \"smtp.domain.tld\";\n  port = 587;\n  from = \"exporteruser@domain.tld\";\n  to = \"exporteruser@domain.tld\";\n  detectionDir = \"/path/to/Maildir/new\";\n} ]\n",
                  position: (104, 1),
                 },
                ],
                position: (103, 35),
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (113, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "List of servers that should be probed.\n\n<emphasis>Note:</emphasis> if your mailserver has <citerefentry>\n<refentrytitle>rspamd</refentrytitle><manvolnum>8</manvolnum></citerefentry> configured,\nit can happen that emails from this exporter are marked as spam.\n\nIt's possible to work around the issue with a config like this:\n<programlisting>\n{\n  <link linkend=\"opt-services.rspamd.locals._name_.text\">services.rspamd.locals.\"multimap.conf\".text</link> = ",
                position: (114, 1),
               },
               Raw {
                content: "''",
                position: (123, 119),
               },
               Raw {
                content: "\n    ALLOWLIST_PROMETHEUS {\n      filter = \"email:domain:tld\";\n      type = \"from\";\n      map = \"",
                position: (123, 122),
               },
               Raw {
                content: "$",
                position: (127, 22),
               },
               Raw {
                content: "{pkgs.writeText \"allowmap\" \"domain.tld\"}\";\n      score = -100.0;\n    }\n  ",
                position: (127, 25),
               },
               Raw {
                content: "''",
                position: (130, 11),
               },
               Raw {
                content: ";\n}\n</programlisting>\n",
                position: (130, 14),
               },
              ],
              position: (113, 21),
             },
            },
           ],
           recursive: false,
           position: (100, 24),
          },
         ],
        },
       },
      ],
      recursive: false,
      position: (79, 29),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "port",
         position: (138, 3),
        },
       ],
      },
      to: Int {
       value: 9225,
       position: (138, 10),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "extraOpts",
         position: (139, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "configFile",
            position: (140, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (140, 18),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (141, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (141, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (141, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (141, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "path",
                    position: (141, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (142, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (142, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (143, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Specify the mailexporter configuration file to use.\n",
                 position: (144, 1),
                },
               ],
               position: (143, 21),
              },
             },
            ],
            recursive: false,
            position: (140, 27),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "configuration",
            position: (147, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (147, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (148, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (148, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (148, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Parentheses {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (148, 28),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "submodule",
                      position: (148, 34),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Variable {
                    identifier: "exporterOptions",
                    position: (148, 44),
                   },
                  ],
                 },
                 position: (148, 27),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (149, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (149, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (150, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Specify the mailexporter configuration file to use.\n",
                 position: (151, 1),
                },
               ],
               position: (150, 21),
              },
             },
            ],
            recursive: false,
            position: (147, 30),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "telemetryPath",
            position: (154, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (154, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (155, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (155, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (155, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (156, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/metrics",
                 position: (156, 18),
                },
               ],
               position: (156, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (157, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Path under which to expose metrics.\n",
                 position: (158, 1),
                },
               ],
               position: (157, 21),
              },
             },
            ],
            recursive: false,
            position: (154, 30),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (139, 15),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "serviceOpts",
         position: (162, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "serviceConfig",
            position: (163, 5),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "DynamicUser",
               position: (164, 7),
              },
             ],
            },
            to: Variable {
             identifier: "false",
             position: (164, 21),
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "ExecStart",
               position: (165, 7),
              },
             ],
            },
            to: String {
             parts: [
              Raw {
               content: "",
               position: (166, 1),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (166, 11),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "prometheus-mail-exporter",
                   position: (166, 16),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "/bin/mailexporter \\\n  --web.listen-address ",
               position: (166, 41),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (167, 34),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "listenAddress",
                   position: (167, 38),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: ":",
               position: (167, 52),
              },
              Interpolation {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "toString",
                 position: (167, 55),
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (167, 64),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "port",
                     position: (167, 68),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
              Raw {
               content: " \\\n  --web.telemetry-path ",
               position: (167, 73),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (168, 34),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "telemetryPath",
                   position: (168, 38),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: " \\\n  --config.file ",
               position: (168, 52),
              },
              Interpolation {
               expression: IfThenElse {
                predicate: BinaryOperation {
                 operator: NotEqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (170, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "configuration",
                      position: (170, 20),
                     },
                    ],
                   },
                   default: None,
                  },
                  Variable {
                   identifier: "null",
                   position: (170, 37),
                  },
                 ],
                 position: (170, 34),
                },
                then: Variable {
                 identifier: "configurationFile",
                 position: (170, 47),
                },
                else_: Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "escapeShellArg",
                   position: (170, 71),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (170, 86),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "configFile",
                       position: (170, 90),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                 position: (170, 70),
                },
                position: (170, 13),
               },
              },
              Raw {
               content: " \\\n  ",
               position: (171, 12),
              },
              Interpolation {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "concatStringsSep",
                 position: (172, 13),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: " \\\n  ",
                    position: (172, 31),
                   },
                  ],
                  position: (172, 30),
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (172, 40),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "extraFlags",
                     position: (172, 44),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
              Raw {
               content: "\n",
               position: (172, 55),
              },
             ],
             position: (165, 19),
            },
           },
          ],
          recursive: false,
          position: (163, 21),
         },
        },
       ],
       recursive: false,
       position: (162, 17),
      },
     },
    ],
    recursive: false,
    position: (137, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}