---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "influxdb",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configOptions",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "recursiveUpdate",
       position: (8, 19),
      },
      arguments: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "meta",
             position: (9, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "bind-address",
                position: (10, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: ":8088",
                position: (10, 23),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "commit-timeout",
                position: (11, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "50ms",
                position: (11, 25),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "dir",
                position: (12, 7),
               },
              ],
             },
             String {
              parts: [
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (12, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (12, 20),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/meta",
                position: (12, 28),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "election-timeout",
                position: (13, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "1s",
                position: (13, 27),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "heartbeat-timeout",
                position: (14, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "1s",
                position: (14, 28),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "hostname",
                position: (15, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "localhost",
                position: (15, 19),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "leader-lease-timeout",
                position: (16, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "500ms",
                position: (16, 31),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "retention-autocreate",
                position: (17, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (17, 30),
             },
            ),
           ],
           recursive: false,
           position: (9, 12),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "data",
             position: (20, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "dir",
                position: (21, 7),
               },
              ],
             },
             String {
              parts: [
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (21, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (21, 20),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/data",
                position: (21, 28),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wal-dir",
                position: (22, 7),
               },
              ],
             },
             String {
              parts: [
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (22, 20),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (22, 24),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/wal",
                position: (22, 32),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "max-wal-size",
                position: (23, 7),
               },
              ],
             },
             Int {
              value: 104857600,
              position: (23, 22),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wal-enable-logging",
                position: (24, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (24, 28),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wal-flush-interval",
                position: (25, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "10m",
                position: (25, 29),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wal-partition-flush-delay",
                position: (26, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "2s",
                position: (26, 36),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (20, 12),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "cluster",
             position: (29, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "shard-writer-timeout",
                position: (30, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "5s",
                position: (30, 31),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "write-timeout",
                position: (31, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "5s",
                position: (31, 24),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (29, 15),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "retention",
             position: (34, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enabled",
                position: (35, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (35, 17),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "check-interval",
                position: (36, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "30m",
                position: (36, 25),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (34, 17),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "http",
             position: (39, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enabled",
                position: (40, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (40, 17),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "auth-enabled",
                position: (41, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (41, 22),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "bind-address",
                position: (42, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: ":8086",
                position: (42, 23),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "https-enabled",
                position: (43, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (43, 23),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "log-enabled",
                position: (44, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (44, 21),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "pprof-enabled",
                position: (45, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (45, 23),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "write-tracing",
                position: (46, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (46, 23),
             },
            ),
           ],
           recursive: false,
           position: (39, 12),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "monitor",
             position: (49, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "store-enabled",
                position: (50, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (50, 23),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "store-database",
                position: (51, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "_internal",
                position: (51, 25),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "store-interval",
                position: (52, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "10s",
                position: (52, 25),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (49, 15),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "admin",
             position: (55, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enabled",
                position: (56, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (56, 17),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "bind-address",
                position: (57, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: ":8083",
                position: (57, 23),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "https-enabled",
                position: (58, 7),
               },
              ],
             },
             Variable {
              identifier: "false",
              position: (58, 23),
             },
            ),
           ],
           recursive: false,
           position: (55, 13),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "graphite",
             position: (61, 5),
            },
           ],
          },
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "enabled",
                  position: (62, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (62, 17),
               },
              ),
             ],
             recursive: false,
             position: (61, 17),
            },
           ],
           position: (61, 16),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "udp",
             position: (65, 5),
            },
           ],
          },
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "enabled",
                  position: (66, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (66, 17),
               },
              ),
             ],
             recursive: false,
             position: (65, 12),
            },
           ],
           position: (65, 11),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "collectd",
             position: (69, 5),
            },
           ],
          },
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "enabled",
                  position: (70, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (70, 17),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "typesdb",
                  position: (71, 7),
                 },
                ],
               },
               String {
                parts: [
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (71, 20),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "collectd-data",
                      position: (71, 25),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/share/collectd/types.db",
                  position: (71, 39),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "database",
                  position: (72, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "collectd_db",
                  position: (72, 19),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "bind-address",
                  position: (73, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: ":25826",
                  position: (73, 23),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (69, 17),
            },
           ],
           position: (69, 16),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "opentsdb",
             position: (76, 5),
            },
           ],
          },
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "enabled",
                  position: (77, 7),
                 },
                ],
               },
               Variable {
                identifier: "false",
                position: (77, 17),
               },
              ),
             ],
             recursive: false,
             position: (76, 17),
            },
           ],
           position: (76, 16),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "continuous_queries",
             position: (80, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enabled",
                position: (81, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (81, 17),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "log-enabled",
                position: (82, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (82, 21),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "recompute-previous-n",
                position: (83, 7),
               },
              ],
             },
             Int {
              value: 2,
              position: (83, 30),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "recompute-no-older-than",
                position: (84, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "10m",
                position: (84, 34),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "compute-runs-per-interval",
                position: (85, 7),
               },
              ],
             },
             Int {
              value: 10,
              position: (85, 35),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "compute-no-more-than",
                position: (86, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "2m",
                position: (86, 31),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (80, 26),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "hinted-handoff",
             position: (89, 5),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enabled",
                position: (90, 7),
               },
              ],
             },
             Variable {
              identifier: "true",
              position: (90, 17),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "dir",
                position: (91, 7),
               },
              ],
             },
             String {
              parts: [
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (91, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (91, 20),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/hh",
                position: (91, 28),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "max-size",
                position: (92, 7),
               },
              ],
             },
             Int {
              value: 1073741824,
              position: (92, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "max-age",
                position: (93, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "168h",
                position: (93, 18),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "retry-rate-limit",
                position: (94, 7),
               },
              ],
             },
             Int {
              value: 0,
              position: (94, 26),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "retry-interval",
                position: (95, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "1s",
                position: (95, 25),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (89, 22),
          },
         ),
        ],
        recursive: false,
        position: (8, 35),
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (97, 5),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "extraConfig",
           position: (97, 9),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (99, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (99, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "runCommandLocal",
          position: (99, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "config.toml",
          position: (99, 38),
         },
        ],
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "nativeBuildInputs",
             position: (100, 5),
            },
           ],
          },
          List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "pkgs",
              position: (100, 27),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "remarshal",
                position: (100, 32),
               },
              ],
             },
             default: None,
            },
           ],
           position: (100, 25),
          },
         ),
        ],
        recursive: false,
        position: (99, 51),
       },
       String {
        parts: [
         Raw {
          content: "remarshal -if json -of toml \\\n  < ",
          position: (102, 1),
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "pkgs",
             position: (103, 11),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "writeText",
               position: (103, 16),
              },
             ],
            },
            default: None,
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "config.json",
               position: (103, 27),
              },
             ],
            },
            FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "builtins",
               position: (103, 41),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "toJSON",
                 position: (103, 50),
                },
               ],
              },
              default: None,
             },
             arguments: [
              Variable {
               identifier: "configOptions",
               position: (103, 57),
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: " \\\n  > $out\n",
          position: (103, 72),
         },
        ],
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (111, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (113, 5),
           },
           Raw {
            content: "influxdb",
            position: (113, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (115, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (115, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (116, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (116, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (117, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to enable the influxdb server",
                    position: (117, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (118, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (118, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (118, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (115, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "package",
               position: (121, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (121, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (122, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (122, 19),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "influxdb",
                     position: (122, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (123, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (123, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.influxdb",
                      position: (123, 42),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (124, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Which influxdb derivation to use",
                    position: (124, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (125, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (125, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "package",
                     position: (125, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (121, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (128, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (128, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (129, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "influxdb",
                    position: (129, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (130, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "User account under which influxdb runs",
                    position: (130, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (131, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (131, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (131, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (128, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "group",
               position: (134, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (134, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (135, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "influxdb",
                    position: (135, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (136, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Group under which influxdb runs",
                    position: (136, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (137, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (137, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (137, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (134, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "dataDir",
               position: (140, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (140, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (141, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/var/db/influxdb",
                    position: (141, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (142, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Data directory for influxd data files.",
                    position: (142, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (143, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (143, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "path",
                     position: (143, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (140, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (146, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (146, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (147, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (147, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (148, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Extra configuration options for influxdb",
                    position: (148, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (149, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (149, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "attrs",
                     position: (149, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (146, 30),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (113, 25),
         },
        ),
       ],
       recursive: false,
       position: (111, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (157, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (157, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (157, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (157, 24),
           },
           Raw {
            content: "influxdb",
            position: (157, 33),
           },
           Raw {
            content: "enable",
            position: (157, 42),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (159, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (159, 13),
             },
             Raw {
              content: "rules",
              position: (159, 22),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "d '",
                position: (160, 8),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (160, 13),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (160, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' 0770 ",
                position: (160, 25),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (160, 34),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "user",
                    position: (160, 38),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (160, 43),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (160, 46),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "group",
                    position: (160, 50),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (160, 56),
               },
              ],
             },
            ],
            position: (159, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (163, 5),
             },
             Raw {
              content: "services",
              position: (163, 13),
             },
             Raw {
              content: "influxdb",
              position: (163, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (164, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "InfluxDB Server",
                 position: (164, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (165, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (165, 21),
                  },
                 ],
                },
               ],
               position: (165, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (166, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (166, 18),
                  },
                 ],
                },
               ],
               position: (166, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (167, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (168, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (168, 25),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (168, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/influxd -config \"",
                    position: (168, 37),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "configFile",
                     position: (168, 61),
                    },
                   },
                   Raw {
                    content: "\"",
                    position: (168, 72),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (169, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (169, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (169, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Group",
                    position: (170, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (170, 17),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "group",
                     position: (170, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (167, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "postStart",
                 position: (172, 7),
                },
               ],
              },
              LetIn {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "scheme",
                    position: (174, 11),
                   },
                  ],
                 },
                 IfThenElse {
                  predicate: PropertyAccess {
                   expression: Variable {
                    identifier: "configOptions",
                    position: (174, 23),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "http",
                      position: (174, 37),
                     },
                     Raw {
                      content: "https-enabled",
                      position: (174, 42),
                     },
                    ],
                   },
                   default: None,
                  },
                  then: String {
                   parts: [
                    Raw {
                     content: "-k https",
                     position: (174, 62),
                    },
                   ],
                  },
                  else_: String {
                   parts: [
                    Raw {
                     content: "http",
                     position: (174, 78),
                    },
                   ],
                  },
                  position: (174, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "bindAddr",
                    position: (175, 11),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Function {
                   argument: Some(
                    "ba",
                   ),
                   arguments: FunctionArguments {
                    arguments: [],
                    ellipsis: false,
                   },
                   definition: IfThenElse {
                    predicate: FunctionApplication {
                     function: Variable {
                      identifier: "hasPrefix",
                      position: (175, 30),
                     },
                     arguments: [
                      String {
                       parts: [
                        Raw {
                         content: ":",
                         position: (175, 41),
                        },
                       ],
                      },
                      Variable {
                       identifier: "ba",
                       position: (175, 44),
                      },
                     ],
                    },
                    then: String {
                     parts: [
                      Raw {
                       content: "127.0.0.1",
                       position: (175, 53),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "ba",
                        position: (175, 64),
                       },
                      },
                     ],
                    },
                    else_: String {
                     parts: [
                      Expression {
                       expression: Variable {
                        identifier: "ba",
                        position: (175, 77),
                       },
                      },
                     ],
                    },
                    position: (175, 27),
                   },
                   position: (175, 23),
                  },
                  arguments: [
                   FunctionApplication {
                    function: Variable {
                     identifier: "toString",
                     position: (175, 83),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "configOptions",
                       position: (175, 92),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "http",
                         position: (175, 106),
                        },
                        Raw {
                         content: "bind-address",
                         position: (175, 111),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  ],
                 },
                ),
               ],
               target: FunctionApplication {
                function: Variable {
                 identifier: "mkBefore",
                 position: (177, 9),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "until ",
                    position: (178, 1),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (178, 19),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "curl",
                        position: (178, 24),
                       },
                       Raw {
                        content: "bin",
                        position: (178, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/curl -s -o /dev/null ",
                    position: (178, 33),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "scheme",
                     position: (178, 61),
                    },
                   },
                   Raw {
                    content: "://",
                    position: (178, 68),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "bindAddr",
                     position: (178, 73),
                    },
                   },
                   Raw {
                    content: "/ping; do\n  sleep 1;\ndone\n",
                    position: (178, 82),
                   },
                  ],
                 },
                ],
               },
               position: (173, 9),
              },
             ),
            ],
            recursive: false,
            position: (163, 33),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (184, 5),
             },
             Raw {
              content: "users",
              position: (184, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (184, 19),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (184, 34),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (184, 38),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "influxdb",
                  position: (184, 47),
                 },
                ],
               },
              ],
              position: (184, 43),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "influxdb",
                   position: (185, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "uid",
                      position: (186, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (186, 15),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "ids",
                       position: (186, 22),
                      },
                      Raw {
                       content: "uids",
                       position: (186, 26),
                      },
                      Raw {
                       content: "influxdb",
                       position: (186, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (187, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "influxdb",
                      position: (187, 18),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (188, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "Influxdb daemon user",
                      position: (188, 24),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (185, 18),
                },
               ),
              ],
              recursive: false,
              position: (184, 58),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (192, 5),
             },
             Raw {
              content: "groups",
              position: (192, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (192, 20),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (192, 35),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "group",
                   position: (192, 39),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "influxdb",
                  position: (192, 49),
                 },
                ],
               },
              ],
              position: (192, 45),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "influxdb",
                   position: (193, 7),
                  },
                  Raw {
                   content: "gid",
                   position: (193, 16),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (193, 22),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "ids",
                    position: (193, 29),
                   },
                   Raw {
                    content: "gids",
                    position: (193, 33),
                   },
                   Raw {
                    content: "influxdb",
                    position: (193, 38),
                   },
                  ],
                 },
                 default: None,
                },
               ),
              ],
              recursive: false,
              position: (192, 60),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (157, 49),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (107, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}