---
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: "datadog-agent",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "ddConf",
        position: (8, 3),
       },
      ],
     },
     BinaryOperation {
      operator: Update,
      operands: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "skip_ssl_validation",
             position: (9, 5),
            },
           ],
          },
          Variable {
           identifier: "false",
           position: (9, 27),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "confd_path",
             position: (10, 5),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "/etc/datadog-agent/conf.d",
             position: (10, 28),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "additional_checksd",
             position: (11, 5),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "/etc/datadog-agent/checks.d",
             position: (11, 28),
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "use_dogstatsd",
             position: (12, 5),
            },
           ],
          },
          Variable {
           identifier: "true",
           position: (12, 27),
          },
         ),
        ],
        recursive: false,
        position: (8, 12),
       },
       BinaryOperation {
        operator: Update,
        operands: [
         FunctionApplication {
          function: Variable {
           identifier: "optionalAttrs",
           position: (14, 6),
          },
          arguments: [
           BinaryOperation {
            operator: NotEqualTo,
            operands: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (14, 21),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "logLevel",
                 position: (14, 25),
                },
               ],
              },
              default: None,
             },
             Variable {
              identifier: "null",
              position: (14, 37),
             },
            ],
            position: (14, 34),
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "log_level",
                 position: (14, 45),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (14, 57),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "logLevel",
                  position: (14, 61),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (14, 43),
           },
          ],
         },
         BinaryOperation {
          operator: Update,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (15, 6),
            },
            arguments: [
             BinaryOperation {
              operator: NotEqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (15, 21),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "hostname",
                   position: (15, 25),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "null",
                position: (15, 37),
               },
              ],
              position: (15, 34),
             },
             Map {
              bindings: [
               Inherit(
                Some(
                 Variable {
                  identifier: "cfg",
                  position: (15, 54),
                 },
                ),
                [
                 Raw {
                  content: "hostname",
                  position: (15, 59),
                 },
                ],
               ),
              ],
              recursive: false,
              position: (15, 43),
             },
            ],
           },
           BinaryOperation {
            operator: Update,
            operands: [
             FunctionApplication {
              function: Variable {
               identifier: "optionalAttrs",
               position: (16, 6),
              },
              arguments: [
               BinaryOperation {
                operator: NotEqualTo,
                operands: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (16, 21),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "ddUrl",
                     position: (16, 25),
                    },
                   ],
                  },
                  default: None,
                 },
                 Variable {
                  identifier: "null",
                  position: (16, 34),
                 },
                ],
                position: (16, 31),
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "dd_url",
                     position: (16, 42),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (16, 51),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "ddUrl",
                      position: (16, 55),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                ],
                recursive: false,
                position: (16, 40),
               },
              ],
             },
             BinaryOperation {
              operator: Update,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (17, 6),
                },
                arguments: [
                 BinaryOperation {
                  operator: NotEqualTo,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (17, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "site",
                       position: (17, 25),
                      },
                     ],
                    },
                    default: None,
                   },
                   Variable {
                    identifier: "null",
                    position: (17, 33),
                   },
                  ],
                  position: (17, 30),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "site",
                       position: (17, 41),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (17, 48),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "site",
                        position: (17, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                  ],
                  recursive: false,
                  position: (17, 39),
                 },
                ],
               },
               BinaryOperation {
                operator: Update,
                operands: [
                 FunctionApplication {
                  function: Variable {
                   identifier: "optionalAttrs",
                   position: (18, 6),
                  },
                  arguments: [
                   BinaryOperation {
                    operator: NotEqualTo,
                    operands: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (18, 21),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "tags",
                         position: (18, 25),
                        },
                       ],
                      },
                      default: None,
                     },
                     Variable {
                      identifier: "null",
                      position: (18, 33),
                     },
                    ],
                    position: (18, 30),
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "tags",
                         position: (18, 42),
                        },
                       ],
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "concatStringsSep",
                        position: (18, 49),
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: ", ",
                           position: (18, 67),
                          },
                         ],
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (18, 71),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "tags",
                            position: (18, 75),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (18, 40),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Update,
                  operands: [
                   FunctionApplication {
                    function: Variable {
                     identifier: "optionalAttrs",
                     position: (19, 6),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (19, 21),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enableLiveProcessCollection",
                         position: (19, 25),
                        },
                       ],
                      },
                      default: None,
                     },
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "process_config",
                           position: (19, 56),
                          },
                         ],
                        },
                        Map {
                         bindings: [
                          KeyValue(
                           AttributePath {
                            attributes: [
                             Raw {
                              content: "enabled",
                              position: (19, 75),
                             },
                            ],
                           },
                           String {
                            parts: [
                             Raw {
                              content: "true",
                              position: (19, 86),
                             },
                            ],
                           },
                          ),
                         ],
                         recursive: false,
                         position: (19, 73),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (19, 54),
                     },
                    ],
                   },
                   BinaryOperation {
                    operator: Update,
                    operands: [
                     FunctionApplication {
                      function: Variable {
                       identifier: "optionalAttrs",
                       position: (20, 6),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (20, 21),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "enableTraceAgent",
                           position: (20, 25),
                          },
                         ],
                        },
                        default: None,
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "apm_config",
                             position: (20, 45),
                            },
                           ],
                          },
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "enabled",
                                position: (20, 60),
                               },
                              ],
                             },
                             Variable {
                              identifier: "true",
                              position: (20, 70),
                             },
                            ),
                           ],
                           recursive: false,
                           position: (20, 58),
                          },
                         ),
                        ],
                        recursive: false,
                        position: (20, 43),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (21, 6),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "extraConfig",
                         position: (21, 10),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                    position: (21, 3),
                   },
                  ],
                  position: (20, 3),
                 },
                ],
                position: (19, 3),
               },
              ],
              position: (18, 3),
             },
            ],
            position: (17, 3),
           },
          ],
          position: (16, 3),
         },
        ],
        position: (15, 3),
       },
      ],
      position: (14, 3),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "makeCheckConfigs",
        position: (26, 3),
       },
      ],
     },
     Function {
      argument: Some(
       "entries",
      ),
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: false,
      },
      definition: FunctionApplication {
       function: Variable {
        identifier: "mapAttrs'",
        position: (26, 31),
       },
       arguments: [
        Function {
         argument: Some(
          "name",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: Function {
          argument: Some(
           "conf",
          ),
          arguments: FunctionArguments {
           arguments: [],
           ellipsis: false,
          },
          definition: Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "name",
                position: (27, 5),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "datadog-agent/conf.d/",
                position: (27, 13),
               },
               Expression {
                expression: Variable {
                 identifier: "name",
                 position: (27, 36),
                },
               },
               Raw {
                content: ".d/conf.yaml",
                position: (27, 41),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "value",
                position: (28, 5),
               },
               Raw {
                content: "source",
                position: (28, 11),
               },
              ],
             },
             FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (28, 20),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "writeText",
                  position: (28, 25),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               String {
                parts: [
                 Expression {
                  expression: Variable {
                   identifier: "name",
                   position: (28, 38),
                  },
                 },
                 Raw {
                  content: "-check-conf.yaml",
                  position: (28, 43),
                 },
                ],
               },
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "builtins",
                  position: (28, 62),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "toJSON",
                    position: (28, 71),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 Variable {
                  identifier: "conf",
                  position: (28, 78),
                 },
                ],
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (26, 54),
          },
          position: (26, 48),
         },
         position: (26, 42),
        },
        Variable {
         identifier: "entries",
         position: (29, 6),
        },
       ],
      },
      position: (26, 22),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "defaultChecks",
        position: (31, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "disk",
           position: (32, 5),
          },
         ],
        },
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (32, 12),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "diskCheck",
            position: (32, 16),
           },
          ],
         },
         default: None,
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "network",
           position: (33, 5),
          },
         ],
        },
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (33, 15),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "networkCheck",
            position: (33, 19),
           },
          ],
         },
         default: None,
        },
       ),
      ],
      recursive: false,
      position: (31, 19),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "etcfiles",
        position: (38, 3),
       },
      ],
     },
     With {
      expression: Variable {
       identifier: "pkgs",
       position: (38, 19),
      },
      target: With {
       expression: Variable {
        identifier: "builtins",
        position: (38, 30),
       },
       target: BinaryOperation {
        operator: Update,
        operands: [
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Expression {
               expression: String {
                parts: [
                 Raw {
                  content: "datadog-agent/datadog.yaml",
                  position: (39, 6),
                 },
                ],
               },
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "source",
                  position: (40, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "writeText",
                 position: (40, 16),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "datadog.yaml",
                    position: (40, 27),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "toJSON",
                   position: (40, 42),
                  },
                  arguments: [
                   Variable {
                    identifier: "ddConf",
                    position: (40, 49),
                   },
                  ],
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (39, 36),
            },
           ),
          ],
          recursive: false,
          position: (39, 3),
         },
         FunctionApplication {
          function: Variable {
           identifier: "makeCheckConfigs",
           position: (42, 8),
          },
          arguments: [
           BinaryOperation {
            operator: Update,
            operands: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (42, 26),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "checks",
                 position: (42, 30),
                },
               ],
              },
              default: None,
             },
             Variable {
              identifier: "defaultChecks",
              position: (42, 40),
             },
            ],
            position: (42, 37),
           },
          ],
         },
        ],
        position: (42, 5),
       },
       position: (38, 25),
      },
      position: (38, 14),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "datadogPkg",
        position: (47, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (47, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "package",
          position: (47, 20),
         },
         Raw {
          content: "override",
          position: (47, 28),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "pythonPackages",
             position: (48, 5),
            },
           ],
          },
          FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "pkgs",
             position: (48, 22),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "datadog-integrations-core",
               position: (48, 27),
              },
             ],
            },
            default: None,
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (48, 53),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "extraIntegrations",
                position: (48, 57),
               },
              ],
             },
             default: None,
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (47, 37),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (51, 3),
        },
        Raw {
         content: "services",
         position: (51, 11),
        },
        Raw {
         content: "datadog-agent",
         position: (51, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (52, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (52, 14),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (53, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable the datadog-agent v7 monitoring service\n",
                 position: (54, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (56, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (56, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (57, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (57, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (57, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (52, 23),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (60, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (60, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (61, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (61, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "datadog-agent",
                  position: (61, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (62, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (62, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.datadog-agent",
                   position: (62, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (63, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Which DataDog v7 agent package to use. Note that the provided\npackage is expected to have an overridable `pythonPackages`-attribute\nwhich configures the Python environment with the Datadog\nchecks.\n",
                 position: (64, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (69, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (69, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (69, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (60, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "apiKeyFile",
            position: (72, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (72, 18),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (73, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Path to a file containing the Datadog API key to associate the\nagent with your account.\n",
                 position: (74, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (77, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/run/keys/datadog_api_key",
                 position: (77, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (78, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (78, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "path",
                  position: (78, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (72, 27),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "ddUrl",
            position: (81, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (81, 13),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (82, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Custom dd_url to configure the agent with. Useful if traffic to datadog\nneeds to go through a proxy.\nDon't use this to point to another datadog site (EU) - use site instead.\n",
                 position: (83, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (87, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (87, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (88, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "http://haproxy.example.com:3834",
                 position: (88, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (89, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (89, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (89, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (89, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (89, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (81, 22),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "site",
            position: (92, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (92, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (93, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The datadog site to point the agent towards.\nSet to datadoghq.eu to point it to their EU site.\n",
                 position: (94, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (97, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (97, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (98, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "datadoghq.eu",
                 position: (98, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (99, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (99, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (99, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (99, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (99, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (92, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "tags",
            position: (102, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (102, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (103, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The tags to mark this Datadog agent",
                 position: (103, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (104, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "test",
                   position: (104, 20),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "service",
                   position: (104, 27),
                  },
                 ],
                },
               ],
               position: (104, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (105, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (105, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (106, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (106, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (106, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (106, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "listOf",
                     position: (106, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (106, 41),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "str",
                      position: (106, 47),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (102, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hostname",
            position: (109, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (109, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (110, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The hostname to show in the Datadog dashboard (optional)",
                 position: (110, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (111, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (111, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (112, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "mymachine.mydomain",
                 position: (112, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (113, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (113, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (113, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (113, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (113, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (109, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "logLevel",
            position: (116, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (116, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (117, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Logging verbosity.",
                 position: (117, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (118, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (118, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (119, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (119, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (119, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (119, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "enum",
                     position: (119, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "DEBUG",
                       position: (119, 41),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "INFO",
                       position: (119, 49),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "WARN",
                       position: (119, 56),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "ERROR",
                       position: (119, 63),
                      },
                     ],
                    },
                   ],
                   position: (119, 39),
                  },
                 ],
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (116, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraIntegrations",
            position: (122, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (122, 25),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (123, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (123, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (124, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (124, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "attrs",
                  position: (124, 23),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (126, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra integrations from the Datadog core-integrations\nrepository that should be built and included.\n\nBy default the included integrations are disk, mongo, network,\nnginx and postgres.\n\nTo include additional integrations the name of the derivation\nand a function to filter its dependencies from the Python\npackage set must be provided.\n",
                 position: (127, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (138, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (138, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  ntp = pythonPackages: [ pythonPackages.ntplib ];\n}\n",
                   position: (139, 1),
                  },
                 ],
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (122, 34),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraConfig",
            position: (145, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (145, 19),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (146, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (146, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (147, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (147, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "attrs",
                  position: (147, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (148, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra configuration options that will be merged into the\nmain config file <filename>datadog.yaml</filename>.\n",
                 position: (149, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (145, 28),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enableLiveProcessCollection",
            position: (154, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (154, 35),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (155, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable the live process collection agent.\n",
                 position: (156, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (158, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (158, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (159, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (159, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (159, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (154, 44),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enableTraceAgent",
            position: (162, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (162, 24),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (163, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to enable the trace agent.\n",
                 position: (164, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (166, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (166, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (167, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (167, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (167, 20),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (162, 33),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "checks",
            position: (170, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (170, 14),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (171, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Configuration for all Datadog checks. Keys of this attribute\nset will be used as the name of the check to create the\nappropriate configuration in `conf.d/$check.d/conf.yaml`.\n\nThe configuration is converted into JSON from the plain Nix\nlanguage configuration, meaning that you should write\nconfiguration adhering to Datadog's documentation - but in Nix\nlanguage.\n\nRefer to the implementation of this module (specifically the\ndefinition of `defaultChecks`) for an example.\n\nNote: The 'disk' and 'network' check are configured in\nseparate options because they exist by default. Attempting to\noverride their configuration here will have no effect.\n",
                 position: (172, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (189, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "http_check",
                    position: (190, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "init_config",
                       position: (191, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "null",
                     position: (191, 25),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "instances",
                       position: (192, 11),
                      },
                     ],
                    },
                    List {
                     elements: [
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "name",
                            position: (194, 15),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "some-service",
                            position: (194, 23),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "url",
                            position: (195, 15),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "http://localhost:1337/healthz",
                            position: (195, 22),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "tags",
                            position: (196, 15),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "some-service",
                              position: (196, 25),
                             },
                            ],
                           },
                          ],
                          position: (196, 22),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (193, 13),
                      },
                     ],
                     position: (192, 23),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (190, 22),
                 },
                ),
               ],
               recursive: false,
               position: (189, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (202, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (202, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (206, 7),
                },
               ],
              },
              With {
               expression: Variable {
                identifier: "types",
                position: (206, 19),
               },
               target: FunctionApplication {
                function: Variable {
                 identifier: "attrsOf",
                 position: (206, 26),
                },
                arguments: [
                 Variable {
                  identifier: "attrs",
                  position: (206, 34),
                 },
                ],
               },
               position: (206, 14),
              },
             ),
            ],
            recursive: false,
            position: (170, 23),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "diskCheck",
            position: (209, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (209, 17),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (210, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Disk check config",
                 position: (210, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (211, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (211, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "attrs",
                  position: (211, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (212, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "init_config",
                    position: (213, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (213, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "instances",
                    position: (214, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "use_mount",
                         position: (214, 25),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "false",
                         position: (214, 38),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (214, 23),
                   },
                  ],
                  position: (214, 21),
                 },
                ),
               ],
               recursive: false,
               position: (212, 17),
              },
             ),
            ],
            recursive: false,
            position: (209, 26),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "networkCheck",
            position: (218, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (218, 20),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (219, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Network check config",
                 position: (219, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (220, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (220, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "attrs",
                  position: (220, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (221, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "init_config",
                    position: (222, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (222, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "instances",
                    position: (224, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "collect_connection_state",
                         position: (224, 25),
                        },
                       ],
                      },
                      Variable {
                       identifier: "false",
                       position: (224, 52),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "excluded_interfaces",
                         position: (225, 11),
                        },
                       ],
                      },
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: "lo",
                           position: (225, 36),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "lo0",
                           position: (225, 41),
                          },
                         ],
                        },
                       ],
                       position: (225, 33),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (224, 23),
                   },
                  ],
                  position: (224, 21),
                 },
                ),
               ],
               recursive: false,
               position: (221, 17),
              },
             ),
            ],
            recursive: false,
            position: (218, 29),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (51, 36),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (229, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (229, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (229, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (229, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (230, 5),
             },
             Raw {
              content: "systemPackages",
              position: (230, 17),
             },
            ],
           },
           List {
            elements: [
             Variable {
              identifier: "datadogPkg",
              position: (230, 36),
             },
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (230, 47),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "sysstat",
                 position: (230, 52),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (230, 60),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "procps",
                 position: (230, 65),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (230, 72),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "iproute2",
                 position: (230, 77),
                },
               ],
              },
              default: None,
             },
            ],
            position: (230, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (232, 5),
             },
             Raw {
              content: "users",
              position: (232, 11),
             },
             Raw {
              content: "datadog",
              position: (232, 17),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (233, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Datadog Agent User",
                 position: (233, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "uid",
                 position: (234, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (234, 13),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "ids",
                  position: (234, 20),
                 },
                 Raw {
                  content: "uids",
                  position: (234, 24),
                 },
                 Raw {
                  content: "datadog",
                  position: (234, 29),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "group",
                 position: (235, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "datadog",
                 position: (235, 16),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "home",
                 position: (236, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/var/log/datadog/",
                 position: (236, 15),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "createHome",
                 position: (237, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (237, 20),
              },
             ),
            ],
            recursive: false,
            position: (232, 27),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (240, 5),
             },
             Raw {
              content: "groups",
              position: (240, 11),
             },
             Raw {
              content: "datadog",
              position: (240, 18),
             },
             Raw {
              content: "gid",
              position: (240, 26),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (240, 32),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "ids",
               position: (240, 39),
              },
              Raw {
               content: "gids",
               position: (240, 43),
              },
              Raw {
               content: "datadog",
               position: (240, 48),
              },
             ],
            },
            default: None,
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (242, 5),
             },
             Raw {
              content: "services",
              position: (242, 13),
             },
            ],
           },
           LetIn {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "makeService",
                 position: (243, 7),
                },
               ],
              },
              Function {
               argument: Some(
                "attrs",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "recursiveUpdate",
                 position: (243, 28),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "path",
                       position: (244, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      Variable {
                       identifier: "datadogPkg",
                       position: (244, 18),
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (244, 29),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "python",
                          position: (244, 34),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (244, 41),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "sysstat",
                          position: (244, 46),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (244, 54),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "procps",
                          position: (244, 59),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (244, 66),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "iproute2",
                          position: (244, 71),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (244, 16),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "wantedBy",
                       position: (245, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "multi-user.target",
                         position: (245, 23),
                        },
                       ],
                      },
                     ],
                     position: (245, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "serviceConfig",
                       position: (246, 9),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "User",
                          position: (247, 11),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "datadog",
                          position: (247, 19),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "Group",
                          position: (248, 11),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "datadog",
                          position: (248, 20),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "Restart",
                          position: (249, 11),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "always",
                          position: (249, 22),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "RestartSec",
                          position: (250, 11),
                         },
                        ],
                       },
                       Int {
                        value: 2,
                        position: (250, 24),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (246, 25),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "restartTriggers",
                       position: (252, 9),
                      },
                     ],
                    },
                    BinaryOperation {
                     operator: Concatenation,
                     operands: [
                      List {
                       elements: [
                        Variable {
                         identifier: "datadogPkg",
                         position: (252, 29),
                        },
                       ],
                       position: (252, 27),
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "map",
                        position: (252, 46),
                       },
                       arguments: [
                        Function {
                         argument: Some(
                          "x",
                         ),
                         arguments: FunctionArguments {
                          arguments: [],
                          ellipsis: false,
                         },
                         definition: PropertyAccess {
                          expression: Variable {
                           identifier: "x",
                           position: (252, 54),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "source",
                             position: (252, 56),
                            },
                           ],
                          },
                          default: None,
                         },
                         position: (252, 51),
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "attrValues",
                          position: (252, 65),
                         },
                         arguments: [
                          Variable {
                           identifier: "etcfiles",
                           position: (252, 76),
                          },
                         ],
                        },
                       ],
                      },
                     ],
                     position: (252, 42),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (243, 44),
                 },
                 Variable {
                  identifier: "attrs",
                  position: (253, 9),
                 },
                ],
               },
               position: (243, 21),
              },
             ),
            ],
            target: Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "datadog-agent",
                  position: (255, 7),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "makeService",
                 position: (255, 23),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (256, 9),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Datadog agent monitor",
                       position: (256, 24),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "preStart",
                       position: (257, 9),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "chown -R datadog: /etc/datadog-agent\nrm -f /etc/datadog-agent/auth_token\n",
                       position: (258, 1),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "script",
                       position: (261, 9),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "export DD_API_KEY=$(head -n 1 ",
                       position: (262, 1),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (262, 43),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "apiKeyFile",
                           position: (262, 47),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: ")\nexec ",
                       position: (262, 58),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "datadogPkg",
                        position: (263, 18),
                       },
                      },
                      Raw {
                       content: "/bin/agent run -c /etc/datadog-agent/datadog.yaml\n",
                       position: (263, 29),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "serviceConfig",
                       position: (265, 9),
                      },
                      Raw {
                       content: "PermissionsStartOnly",
                       position: (265, 23),
                      },
                     ],
                    },
                    Variable {
                     identifier: "true",
                     position: (265, 46),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (255, 35),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "dd-jmxfetch",
                  position: (268, 7),
                 },
                ],
               },
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (268, 21),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "mkIf",
                    position: (268, 25),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (268, 31),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "hasAttr",
                      position: (268, 35),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "jmx",
                      position: (268, 44),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (268, 49),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "checks",
                       position: (268, 53),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "makeService",
                   position: (268, 62),
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "description",
                         position: (269, 9),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "Datadog JMX Fetcher",
                         position: (269, 24),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "path",
                         position: (270, 9),
                        },
                       ],
                      },
                      List {
                       elements: [
                        Variable {
                         identifier: "datadogPkg",
                         position: (270, 18),
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (270, 29),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "python",
                            position: (270, 34),
                           },
                          ],
                         },
                         default: None,
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (270, 41),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "sysstat",
                            position: (270, 46),
                           },
                          ],
                         },
                         default: None,
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (270, 54),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "procps",
                            position: (270, 59),
                           },
                          ],
                         },
                         default: None,
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (270, 66),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "jdk",
                            position: (270, 71),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                       position: (270, 16),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "serviceConfig",
                         position: (271, 9),
                        },
                        Raw {
                         content: "ExecStart",
                         position: (271, 23),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Expression {
                         expression: Variable {
                          identifier: "datadogPkg",
                          position: (271, 38),
                         },
                        },
                        Raw {
                         content: "/bin/dd-jmxfetch",
                         position: (271, 49),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (268, 74),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "datadog-process-agent",
                  position: (274, 7),
                 },
                ],
               },
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (274, 31),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "mkIf",
                    position: (274, 35),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (274, 40),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "enableLiveProcessCollection",
                     position: (274, 44),
                    },
                   ],
                  },
                  default: None,
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "makeService",
                   position: (274, 73),
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "description",
                         position: (275, 9),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "Datadog Live Process Agent",
                         position: (275, 24),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "path",
                         position: (276, 9),
                        },
                       ],
                      },
                      List {
                       elements: [],
                       position: (276, 16),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "script",
                         position: (277, 9),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "export DD_API_KEY=$(head -n 1 ",
                         position: (278, 1),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (278, 43),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "apiKeyFile",
                             position: (278, 47),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: ")\n",
                         position: (278, 58),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "pkgs",
                           position: (279, 13),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "datadog-process-agent",
                             position: (279, 18),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "/bin/process-agent --config /etc/datadog-agent/datadog.yaml\n",
                         position: (279, 40),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (274, 85),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "datadog-trace-agent",
                  position: (283, 7),
                 },
                ],
               },
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (283, 29),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "mkIf",
                    position: (283, 33),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (283, 38),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "enableTraceAgent",
                     position: (283, 42),
                    },
                   ],
                  },
                  default: None,
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "makeService",
                   position: (283, 60),
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "description",
                         position: (284, 9),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "Datadog Trace Agent",
                         position: (284, 24),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "path",
                         position: (285, 9),
                        },
                       ],
                      },
                      List {
                       elements: [],
                       position: (285, 16),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "script",
                         position: (286, 9),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "export DD_API_KEY=$(head -n 1 ",
                         position: (287, 1),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (287, 43),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "apiKeyFile",
                             position: (287, 47),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: ")\n",
                         position: (287, 58),
                        },
                        Expression {
                         expression: Variable {
                          identifier: "datadogPkg",
                          position: (288, 13),
                         },
                        },
                        Raw {
                         content: "/bin/trace-agent -config /etc/datadog-agent/datadog.yaml\n",
                         position: (288, 24),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (283, 72),
                   },
                  ],
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (254, 8),
            },
            position: (242, 24),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (294, 5),
             },
             Raw {
              content: "etc",
              position: (294, 17),
             },
            ],
           },
           Variable {
            identifier: "etcfiles",
            position: (294, 23),
           },
          ),
         ],
         recursive: false,
         position: (229, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (50, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}