---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "dd-agent",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "ddConf",
        position: (8, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 12),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (8, 17),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "datadog.conf",
          position: (8, 28),
         },
        ],
        position: (8, 27),
       },
       String {
        parts: [
         Raw {
          content: "[Main]\ndd_url: https://app.datadoghq.com\nskip_ssl_validation: no\napi_key: ",
          position: (9, 1),
         },
         Interpolation {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (12, 16),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "api_key",
              position: (12, 20),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (12, 28),
         },
         Interpolation {
          expression: FunctionApplication {
           function: Variable {
            identifier: "optionalString",
            position: (13, 7),
           },
           arguments: [
            Parentheses {
             expression: BinaryOperation {
              operator: NotEqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (13, 23),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "hostname",
                   position: (13, 27),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "null",
                position: (13, 39),
               },
              ],
              position: (13, 36),
             },
             position: (13, 22),
            },
            String {
             parts: [
              Raw {
               content: "hostname: ",
               position: (13, 46),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (13, 58),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "hostname",
                   position: (13, 62),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
             position: (13, 45),
            },
           ],
          },
         },
         Raw {
          content: "\n\ncollector_log_file: /var/log/datadog/collector.log\nforwarder_log_file: /var/log/datadog/forwarder.log\ndogstatsd_log_file: /var/log/datadog/dogstatsd.log\npup_log_file:       /var/log/datadog/pup.log\n\n# proxy_host: my-proxy.com\n# proxy_port: 3128\n# proxy_user: user\n# proxy_password: password\n\n# tags: mytag0, mytag1\n",
          position: (13, 73),
         },
         Interpolation {
          expression: FunctionApplication {
           function: Variable {
            identifier: "optionalString",
            position: (26, 7),
           },
           arguments: [
            Parentheses {
             expression: BinaryOperation {
              operator: NotEqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (26, 23),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "tags",
                   position: (26, 27),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "null",
                position: (26, 35),
               },
              ],
              position: (26, 32),
             },
             position: (26, 22),
            },
            String {
             parts: [
              Raw {
               content: "tags: ",
               position: (26, 43),
              },
              Interpolation {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "concatStringsSep",
                 position: (26, 51),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: ", ",
                    position: (26, 69),
                   },
                  ],
                  position: (26, 68),
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (26, 73),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "tags",
                     position: (26, 77),
                    },
                   ],
                  },
                  default: None,
                 },
                ],
               },
              },
             ],
             position: (26, 42),
            },
           ],
          },
         },
         Raw {
          content: "\n\n# collect_ec2_tags: no\n# recent_point_threshold: 30\n# use_mount: no\n# listen_port: 17123\n# graphite_listen_port: 17124\n# non_local_traffic: no\n# use_curl_http_client: False\n# bind_host: localhost\n\n# use_pup: no\n# pup_port: 17125\n# pup_interface: localhost\n# pup_url: http://localhost:17125\n\n# dogstatsd_port : 8125\n# dogstatsd_interval : 10\n# dogstatsd_normalize : yes\n# statsd_forward_host: address_of_own_statsd_server\n# statsd_forward_port: 8125\n\n# device_blacklist_re: .*\\/dev\\/mapper\\/lxc-box.*\n\n# ganglia_host: localhost\n# ganglia_port: 8651\n",
          position: (26, 85),
         },
        ],
        position: (8, 42),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "diskConfig",
        position: (54, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (54, 16),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (54, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "disk.yaml",
          position: (54, 32),
         },
        ],
        position: (54, 31),
       },
       String {
        parts: [
         Raw {
          content: "init_config:\n\ninstances:\n  - use_mount: no\n",
          position: (55, 1),
         },
        ],
        position: (54, 43),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "networkConfig",
        position: (61, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (61, 19),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (61, 24),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "network.yaml",
          position: (61, 35),
         },
        ],
        position: (61, 34),
       },
       String {
        parts: [
         Raw {
          content: "init_config:\n\ninstances:\n  # Network check only supports one configured instance\n  - collect_connection_state: false\n    excluded_interfaces:\n      - lo\n      - lo0\n",
          position: (62, 1),
         },
        ],
        position: (61, 49),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "postgresqlConfig",
        position: (72, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (72, 22),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (72, 27),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "postgres.yaml",
          position: (72, 38),
         },
        ],
        position: (72, 37),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (72, 53),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "postgresqlConfig",
           position: (72, 57),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "nginxConfig",
        position: (73, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (73, 17),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (73, 22),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "nginx.yaml",
          position: (73, 33),
         },
        ],
        position: (73, 32),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (73, 45),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "nginxConfig",
           position: (73, 49),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "mongoConfig",
        position: (74, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (74, 17),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (74, 22),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "mongo.yaml",
          position: (74, 33),
         },
        ],
        position: (74, 32),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (74, 45),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "mongoConfig",
           position: (74, 49),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "jmxConfig",
        position: (75, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (75, 15),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (75, 20),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "jmx.yaml",
          position: (75, 31),
         },
        ],
        position: (75, 30),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (75, 41),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "jmxConfig",
           position: (75, 45),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "processConfig",
        position: (76, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (76, 19),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (76, 24),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "process.yaml",
          position: (76, 35),
         },
        ],
        position: (76, 34),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (76, 49),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "processConfig",
           position: (76, 53),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "etcfiles",
        position: (78, 3),
       },
      ],
     },
     to: LetIn {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "defaultConfd",
           position: (80, 7),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "import",
          position: (80, 22),
         },
         arguments: [
          Path {
           parts: [
            Raw {
             content: "./dd-agent-defaults.nix",
             position: (80, 29),
            },
           ],
           position: (80, 29),
          },
         ],
        },
       },
      ],
      target: BinaryOperation {
       operator: Update,
       operands: [
        FunctionApplication {
         function: Variable {
          identifier: "listToAttrs",
          position: (82, 7),
         },
         arguments: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "map",
             position: (82, 20),
            },
            arguments: [
             Parentheses {
              expression: Function {
               argument: Simple {
                identifier: "f",
               },
               definition: Map {
                bindings: [
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "name",
                     position: (83, 9),
                    },
                   ],
                  },
                  to: String {
                   parts: [
                    Raw {
                     content: "dd-agent/conf.d/",
                     position: (83, 17),
                    },
                    Interpolation {
                     expression: Variable {
                      identifier: "f",
                      position: (83, 35),
                     },
                    },
                   ],
                   position: (83, 16),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "value",
                     position: (84, 9),
                    },
                    Raw {
                     content: "source",
                     position: (84, 15),
                    },
                   ],
                  },
                  to: String {
                   parts: [
                    Interpolation {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (84, 27),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "dd-agent",
                         position: (84, 32),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/agent/conf.d-system/",
                     position: (84, 41),
                    },
                    Interpolation {
                     expression: Variable {
                      identifier: "f",
                      position: (84, 64),
                     },
                    },
                   ],
                   position: (84, 24),
                  },
                 },
                ],
                recursive: false,
                position: (82, 28),
               },
               position: (82, 25),
              },
              position: (82, 24),
             },
             Variable {
              identifier: "defaultConfd",
              position: (85, 10),
             },
            ],
           },
           position: (82, 19),
          },
         ],
        },
        BinaryOperation {
         operator: Update,
         operands: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Expression {
                ast: String {
                 parts: [
                  Raw {
                   content: "dd-agent/datadog.conf",
                   position: (87, 10),
                  },
                 ],
                 position: (87, 9),
                },
               },
               Raw {
                content: "source",
                position: (87, 33),
               },
              ],
             },
             to: Variable {
              identifier: "ddConf",
              position: (87, 42),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Expression {
                ast: String {
                 parts: [
                  Raw {
                   content: "dd-agent/conf.d/disk.yaml",
                   position: (88, 10),
                  },
                 ],
                 position: (88, 9),
                },
               },
               Raw {
                content: "source",
                position: (88, 37),
               },
              ],
             },
             to: Variable {
              identifier: "diskConfig",
              position: (88, 46),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Expression {
                ast: String {
                 parts: [
                  Raw {
                   content: "dd-agent/conf.d/network.yaml",
                   position: (89, 10),
                  },
                 ],
                 position: (89, 9),
                },
               },
               Raw {
                content: "source",
                position: (89, 40),
               },
              ],
             },
             to: Variable {
              identifier: "networkConfig",
              position: (89, 49),
             },
            },
           ],
           recursive: false,
           position: (86, 7),
          },
          BinaryOperation {
           operator: Update,
           operands: [
            Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "optionalAttrs",
               position: (91, 8),
              },
              arguments: [
               Parentheses {
                expression: BinaryOperation {
                 operator: NotEqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (91, 23),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "postgresqlConfig",
                      position: (91, 27),
                     },
                    ],
                   },
                   default: None,
                  },
                  Variable {
                   identifier: "null",
                   position: (91, 47),
                  },
                 ],
                 position: (91, 44),
                },
                position: (91, 22),
               },
               Map {
                bindings: [
                 Binding {
                  from: AttributePath {
                   parts: [
                    Expression {
                     ast: String {
                      parts: [
                       Raw {
                        content: "dd-agent/conf.d/postgres.yaml",
                        position: (93, 10),
                       },
                      ],
                      position: (93, 9),
                     },
                    },
                    Raw {
                     content: "source",
                     position: (93, 41),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "postgresqlConfig",
                   position: (93, 50),
                  },
                 },
                ],
                recursive: false,
                position: (92, 7),
               },
              ],
             },
             position: (91, 7),
            },
            BinaryOperation {
             operator: Update,
             operands: [
              Parentheses {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (95, 8),
                },
                arguments: [
                 Parentheses {
                  expression: BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (95, 23),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "nginxConfig",
                        position: (95, 27),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (95, 42),
                    },
                   ],
                   position: (95, 39),
                  },
                  position: (95, 22),
                 },
                 Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Expression {
                       ast: String {
                        parts: [
                         Raw {
                          content: "dd-agent/conf.d/nginx.yaml",
                          position: (97, 10),
                         },
                        ],
                        position: (97, 9),
                       },
                      },
                      Raw {
                       content: "source",
                       position: (97, 38),
                      },
                     ],
                    },
                    to: Variable {
                     identifier: "nginxConfig",
                     position: (97, 47),
                    },
                   },
                  ],
                  recursive: false,
                  position: (96, 7),
                 },
                ],
               },
               position: (95, 7),
              },
              BinaryOperation {
               operator: Update,
               operands: [
                Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "optionalAttrs",
                   position: (99, 8),
                  },
                  arguments: [
                   Parentheses {
                    expression: BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (99, 23),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "mongoConfig",
                          position: (99, 27),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (99, 42),
                      },
                     ],
                     position: (99, 39),
                    },
                    position: (99, 22),
                   },
                   Map {
                    bindings: [
                     Binding {
                      from: AttributePath {
                       parts: [
                        Expression {
                         ast: String {
                          parts: [
                           Raw {
                            content: "dd-agent/conf.d/mongo.yaml",
                            position: (101, 10),
                           },
                          ],
                          position: (101, 9),
                         },
                        },
                        Raw {
                         content: "source",
                         position: (101, 38),
                        },
                       ],
                      },
                      to: Variable {
                       identifier: "mongoConfig",
                       position: (101, 47),
                      },
                     },
                    ],
                    recursive: false,
                    position: (100, 7),
                   },
                  ],
                 },
                 position: (99, 7),
                },
                BinaryOperation {
                 operator: Update,
                 operands: [
                  Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "optionalAttrs",
                     position: (103, 8),
                    },
                    arguments: [
                     Parentheses {
                      expression: BinaryOperation {
                       operator: NotEqualTo,
                       operands: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (103, 23),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "processConfig",
                            position: (103, 27),
                           },
                          ],
                         },
                         default: None,
                        },
                        Variable {
                         identifier: "null",
                         position: (103, 44),
                        },
                       ],
                       position: (103, 41),
                      },
                      position: (103, 22),
                     },
                     Map {
                      bindings: [
                       Binding {
                        from: AttributePath {
                         parts: [
                          Expression {
                           ast: String {
                            parts: [
                             Raw {
                              content: "dd-agent/conf.d/process.yaml",
                              position: (105, 10),
                             },
                            ],
                            position: (105, 9),
                           },
                          },
                          Raw {
                           content: "source",
                           position: (105, 40),
                          },
                         ],
                        },
                        to: Variable {
                         identifier: "processConfig",
                         position: (105, 49),
                        },
                       },
                      ],
                      recursive: false,
                      position: (104, 7),
                     },
                    ],
                   },
                   position: (103, 7),
                  },
                  Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "optionalAttrs",
                     position: (107, 8),
                    },
                    arguments: [
                     Parentheses {
                      expression: BinaryOperation {
                       operator: NotEqualTo,
                       operands: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (107, 23),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "jmxConfig",
                            position: (107, 27),
                           },
                          ],
                         },
                         default: None,
                        },
                        Variable {
                         identifier: "null",
                         position: (107, 40),
                        },
                       ],
                       position: (107, 37),
                      },
                      position: (107, 22),
                     },
                     Map {
                      bindings: [
                       Binding {
                        from: AttributePath {
                         parts: [
                          Expression {
                           ast: String {
                            parts: [
                             Raw {
                              content: "dd-agent/conf.d/jmx.yaml",
                              position: (109, 10),
                             },
                            ],
                            position: (109, 9),
                           },
                          },
                          Raw {
                           content: "source",
                           position: (109, 36),
                          },
                         ],
                        },
                        to: Variable {
                         identifier: "jmxConfig",
                         position: (109, 45),
                        },
                       },
                      ],
                      recursive: false,
                      position: (108, 7),
                     },
                    ],
                   },
                   position: (107, 7),
                  },
                 ],
                 position: (106, 10),
                },
               ],
               position: (102, 10),
              },
             ],
             position: (98, 10),
            },
           ],
           position: (94, 10),
          },
         ],
         position: (90, 9),
        },
       ],
       position: (85, 24),
      },
      position: (79, 5),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (113, 3),
        },
        Raw {
         content: "services",
         position: (113, 11),
        },
        Raw {
         content: "dd-agent",
         position: (113, 20),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (114, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (114, 14),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (115, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Whether to enable the dd-agent v5 monitoring service.\nFor datadog-agent v6, see <option>services.datadog-agent.enable</option>.\n",
                 position: (116, 1),
                },
               ],
               position: (115, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (119, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (119, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (120, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (120, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "bool",
                  position: (120, 20),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (114, 23),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "api_key",
            position: (123, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (123, 15),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (124, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "The Datadog API key to associate the agent with your account.\n\nWarning: this key is stored in cleartext within the world-readable\nNix store! Consider using the new v6\n<option>services.datadog-agent</option> module instead.\n",
                 position: (125, 1),
                },
               ],
               position: (124, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (131, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "ae0aa6a8f08efa988ba0a17578f009ab",
                 position: (131, 18),
                },
               ],
               position: (131, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (132, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (132, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (132, 20),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (123, 24),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "tags",
            position: (135, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (135, 12),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (136, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "The tags to mark this Datadog agent",
                 position: (136, 22),
                },
               ],
               position: (136, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (137, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "test",
                   position: (137, 20),
                  },
                 ],
                 position: (137, 19),
                },
                String {
                 parts: [
                  Raw {
                   content: "service",
                   position: (137, 27),
                  },
                 ],
                 position: (137, 26),
                },
               ],
               position: (137, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (138, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (138, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (139, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (139, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (139, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Parentheses {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (139, 28),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "listOf",
                      position: (139, 34),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (139, 41),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "str",
                       position: (139, 47),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                 position: (139, 27),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (135, 21),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "hostname",
            position: (142, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (142, 16),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (143, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "The hostname to show in the Datadog dashboard (optional)",
                 position: (143, 22),
                },
               ],
               position: (143, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (144, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (144, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (145, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "mymachine.mydomain",
                 position: (145, 18),
                },
               ],
               position: (145, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (146, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (146, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (146, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (146, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "str",
                    position: (146, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (142, 25),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "postgresqlConfig",
            position: (149, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (149, 24),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (150, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Datadog PostgreSQL integration configuration",
                 position: (150, 22),
                },
               ],
               position: (150, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (151, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (151, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (152, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (152, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (152, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (152, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "lines",
                    position: (152, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (149, 33),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "nginxConfig",
            position: (155, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (155, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (156, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Datadog nginx integration configuration",
                 position: (156, 22),
                },
               ],
               position: (156, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (157, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (157, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (158, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (158, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (158, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (158, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "lines",
                    position: (158, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (155, 28),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "mongoConfig",
            position: (161, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (161, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (162, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "MongoDB integration configuration",
                 position: (162, 22),
                },
               ],
               position: (162, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (163, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (163, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (164, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (164, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (164, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (164, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "lines",
                    position: (164, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (161, 28),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "jmxConfig",
            position: (167, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (167, 17),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (168, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "JMX integration configuration",
                 position: (168, 22),
                },
               ],
               position: (168, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (169, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (169, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (170, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (170, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (170, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (170, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "lines",
                    position: (170, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (167, 26),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "processConfig",
            position: (173, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (173, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (174, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Process integration configuration\nSee <link xlink:href=\"https://docs.datadoghq.com/integrations/process/\"/>\n",
                 position: (175, 1),
                },
               ],
               position: (174, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (178, 7),
                },
               ],
              },
              to: Variable {
               identifier: "null",
               position: (178, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (179, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (179, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (179, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (179, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "lines",
                    position: (179, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (173, 30),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (113, 31),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (184, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (184, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (184, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (184, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (185, 5),
             },
             Raw {
              content: "systemPackages",
              position: (185, 17),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (185, 36),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "dd-agent",
                 position: (185, 41),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (185, 50),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "sysstat",
                 position: (185, 55),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (185, 63),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "procps",
                 position: (185, 68),
                },
               ],
              },
              default: None,
             },
            ],
            position: (185, 34),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (187, 5),
             },
             Raw {
              content: "users",
              position: (187, 11),
             },
             Raw {
              content: "datadog",
              position: (187, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (188, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Datadog Agent User",
                 position: (188, 22),
                },
               ],
               position: (188, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "uid",
                 position: (189, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (189, 13),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "ids",
                  position: (189, 20),
                 },
                 Raw {
                  content: "uids",
                  position: (189, 24),
                 },
                 Raw {
                  content: "datadog",
                  position: (189, 29),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (190, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "datadog",
                 position: (190, 16),
                },
               ],
               position: (190, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "home",
                 position: (191, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/var/log/datadog/",
                 position: (191, 15),
                },
               ],
               position: (191, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "createHome",
                 position: (192, 7),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (192, 20),
              },
             },
            ],
            recursive: false,
            position: (187, 27),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (195, 5),
             },
             Raw {
              content: "groups",
              position: (195, 11),
             },
             Raw {
              content: "datadog",
              position: (195, 18),
             },
             Raw {
              content: "gid",
              position: (195, 26),
             },
            ],
           },
           to: PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (195, 32),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "ids",
               position: (195, 39),
              },
              Raw {
               content: "gids",
               position: (195, 43),
              },
              Raw {
               content: "datadog",
               position: (195, 48),
              },
             ],
            },
            default: None,
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (197, 5),
             },
             Raw {
              content: "services",
              position: (197, 13),
             },
            ],
           },
           to: LetIn {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "makeService",
                 position: (198, 7),
                },
               ],
              },
              to: Function {
               argument: Simple {
                identifier: "attrs",
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "recursiveUpdate",
                 position: (198, 28),
                },
                arguments: [
                 Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (199, 9),
                      },
                     ],
                    },
                    to: List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (199, 18),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "dd-agent",
                          position: (199, 23),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (199, 32),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "python",
                          position: (199, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (199, 44),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "sysstat",
                          position: (199, 49),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (199, 57),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "procps",
                          position: (199, 62),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (199, 69),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "gohai",
                          position: (199, 74),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (199, 16),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "wantedBy",
                       position: (200, 9),
                      },
                     ],
                    },
                    to: List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "multi-user.target",
                         position: (200, 23),
                        },
                       ],
                       position: (200, 22),
                      },
                     ],
                     position: (200, 20),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "serviceConfig",
                       position: (201, 9),
                      },
                     ],
                    },
                    to: Map {
                     bindings: [
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "User",
                          position: (202, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "datadog",
                          position: (202, 19),
                         },
                        ],
                        position: (202, 18),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "Group",
                          position: (203, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "datadog",
                          position: (203, 20),
                         },
                        ],
                        position: (203, 19),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "Restart",
                          position: (204, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "always",
                          position: (204, 22),
                         },
                        ],
                        position: (204, 21),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "RestartSec",
                          position: (205, 11),
                         },
                        ],
                       },
                       to: Int {
                        value: 2,
                        position: (205, 24),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "PrivateTmp",
                          position: (206, 11),
                         },
                        ],
                       },
                       to: Variable {
                        identifier: "true",
                        position: (206, 24),
                       },
                      },
                     ],
                     recursive: false,
                     position: (201, 25),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "restartTriggers",
                       position: (208, 9),
                      },
                     ],
                    },
                    to: List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (208, 29),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "dd-agent",
                          position: (208, 34),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "ddConf",
                       position: (208, 43),
                      },
                      Variable {
                       identifier: "diskConfig",
                       position: (208, 50),
                      },
                      Variable {
                       identifier: "networkConfig",
                       position: (208, 61),
                      },
                      Variable {
                       identifier: "postgresqlConfig",
                       position: (208, 75),
                      },
                      Variable {
                       identifier: "nginxConfig",
                       position: (208, 92),
                      },
                      Variable {
                       identifier: "mongoConfig",
                       position: (208, 104),
                      },
                      Variable {
                       identifier: "jmxConfig",
                       position: (208, 116),
                      },
                      Variable {
                       identifier: "processConfig",
                       position: (208, 126),
                      },
                     ],
                     position: (208, 27),
                    },
                   },
                  ],
                  recursive: false,
                  position: (198, 44),
                 },
                 Variable {
                  identifier: "attrs",
                  position: (209, 9),
                 },
                ],
               },
               position: (198, 21),
              },
             },
            ],
            target: Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "dd-agent",
                  position: (211, 7),
                 },
                ],
               },
               to: FunctionApplication {
                function: Variable {
                 identifier: "makeService",
                 position: (211, 18),
                },
                arguments: [
                 Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "description",
                       position: (212, 9),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "Datadog agent monitor",
                       position: (212, 24),
                      },
                     ],
                     position: (212, 23),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "serviceConfig",
                       position: (213, 9),
                      },
                      Raw {
                       content: "ExecStart",
                       position: (213, 23),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (213, 38),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dd-agent",
                           position: (213, 43),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/dd-agent foreground",
                       position: (213, 52),
                      },
                     ],
                     position: (213, 35),
                    },
                   },
                  ],
                  recursive: false,
                  position: (211, 30),
                 },
                ],
               },
              },
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "dogstatsd",
                  position: (216, 7),
                 },
                ],
               },
               to: FunctionApplication {
                function: Variable {
                 identifier: "makeService",
                 position: (216, 19),
                },
                arguments: [
                 Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "description",
                       position: (217, 9),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "Datadog statsd",
                       position: (217, 24),
                      },
                     ],
                     position: (217, 23),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "environment",
                       position: (218, 9),
                      },
                      Raw {
                       content: "TMPDIR",
                       position: (218, 21),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "/run/dogstatsd",
                       position: (218, 31),
                      },
                     ],
                     position: (218, 30),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "serviceConfig",
                       position: (219, 9),
                      },
                     ],
                    },
                    to: Map {
                     bindings: [
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "ExecStart",
                          position: (220, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Interpolation {
                          expression: PropertyAccess {
                           expression: Variable {
                            identifier: "pkgs",
                            position: (220, 26),
                           },
                           attribute_path: AttributePath {
                            parts: [
                             Raw {
                              content: "dd-agent",
                              position: (220, 31),
                             },
                            ],
                           },
                           default: None,
                          },
                         },
                         Raw {
                          content: "/bin/dogstatsd start",
                          position: (220, 40),
                         },
                        ],
                        position: (220, 23),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "Type",
                          position: (221, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "forking",
                          position: (221, 19),
                         },
                        ],
                        position: (221, 18),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "PIDFile",
                          position: (222, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "/run/dogstatsd/dogstatsd.pid",
                          position: (222, 22),
                         },
                        ],
                        position: (222, 21),
                       },
                      },
                      Binding {
                       from: AttributePath {
                        parts: [
                         Raw {
                          content: "RuntimeDirectory",
                          position: (223, 11),
                         },
                        ],
                       },
                       to: String {
                        parts: [
                         Raw {
                          content: "dogstatsd",
                          position: (223, 31),
                         },
                        ],
                        position: (223, 30),
                       },
                      },
                     ],
                     recursive: false,
                     position: (219, 25),
                    },
                   },
                  ],
                  recursive: false,
                  position: (216, 31),
                 },
                ],
               },
              },
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "dd-jmxfetch",
                  position: (227, 7),
                 },
                ],
               },
               to: FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (227, 21),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "mkIf",
                    position: (227, 25),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 Parentheses {
                  expression: BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (227, 31),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "jmxConfig",
                        position: (227, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (227, 48),
                    },
                   ],
                   position: (227, 45),
                  },
                  position: (227, 30),
                 },
                 Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "description",
                       position: (228, 9),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "Datadog JMX Fetcher",
                       position: (228, 24),
                      },
                     ],
                     position: (228, 23),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (229, 9),
                      },
                     ],
                    },
                    to: List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (229, 18),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "dd-agent",
                          position: (229, 23),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (229, 32),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "python",
                          position: (229, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (229, 44),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "sysstat",
                          position: (229, 49),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (229, 57),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "procps",
                          position: (229, 62),
                         },
                        ],
                       },
                       default: None,
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (229, 69),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "jdk",
                          position: (229, 74),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (229, 16),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "serviceConfig",
                       position: (230, 9),
                      },
                      Raw {
                       content: "ExecStart",
                       position: (230, 23),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Interpolation {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (230, 38),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "dd-agent",
                           position: (230, 43),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/dd-jmxfetch",
                       position: (230, 52),
                      },
                     ],
                     position: (230, 35),
                    },
                   },
                  ],
                  recursive: false,
                  position: (227, 54),
                 },
                ],
               },
              },
             ],
             recursive: false,
             position: (210, 8),
            },
            position: (197, 24),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (234, 5),
             },
             Raw {
              content: "etc",
              position: (234, 17),
             },
            ],
           },
           to: Variable {
            identifier: "etcfiles",
            position: (234, 23),
           },
          },
         ],
         recursive: false,
         position: (184, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (112, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}