---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "options",
    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: "couchdb",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "opt",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "options",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (7, 17),
        },
        Raw {
         content: "couchdb",
         position: (7, 26),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configFile",
        position: (8, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 16),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (8, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "couchdb.ini",
          position: (8, 32),
         },
        ],
        position: (8, 31),
       },
       Parentheses {
        expression: BinaryOperation {
         operator: Addition,
         operands: [
          BinaryOperation {
           operator: Addition,
           operands: [
            String {
             parts: [
              Raw {
               content: "[couchdb]\ndatabase_dir = ",
               position: (10, 1),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (11, 24),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "databaseDir",
                   position: (11, 28),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "\nuri_file = ",
               position: (11, 40),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (12, 20),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "uriFile",
                   position: (12, 24),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "\nview_index_dir = ",
               position: (12, 32),
              },
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (13, 26),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "viewIndexDir",
                   position: (13, 30),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "\n",
               position: (13, 43),
              },
             ],
             position: (9, 5),
            },
            Parentheses {
             expression: BinaryOperation {
              operator: Addition,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optionalString",
                 position: (14, 11),
                },
                arguments: [
                 Parentheses {
                  expression: BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (14, 27),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "adminPass",
                        position: (14, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (14, 44),
                    },
                   ],
                   position: (14, 41),
                  },
                  position: (14, 26),
                 },
                 String {
                  parts: [
                   Raw {
                    content: "[admins]\n",
                    position: (15, 1),
                   },
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (16, 9),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "adminUser",
                        position: (16, 13),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: " = ",
                    position: (16, 23),
                   },
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (16, 28),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "adminPass",
                        position: (16, 32),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "\n",
                    position: (16, 42),
                   },
                  ],
                  position: (14, 50),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "[chttpd]\n",
                  position: (18, 1),
                 },
                ],
                position: (17, 10),
               },
              ],
              position: (17, 8),
             },
             position: (14, 10),
            },
           ],
           position: (14, 8),
          },
          String {
           parts: [
            Raw {
             content: "port = ",
             position: (21, 1),
            },
            Interpolation {
             expression: FunctionApplication {
              function: Variable {
               identifier: "toString",
               position: (21, 16),
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (21, 25),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "port",
                   position: (21, 29),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            },
            Raw {
             content: "\nbind_address = ",
             position: (21, 34),
            },
            Interpolation {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (22, 24),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "bindAddress",
                 position: (22, 28),
                },
               ],
              },
              default: None,
             },
            },
            Raw {
             content: "\n\n[log]\nfile = ",
             position: (22, 40),
            },
            Interpolation {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (25, 16),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "logFile",
                 position: (25, 20),
                },
               ],
              },
              default: None,
             },
            },
            Raw {
             content: "\n",
             position: (25, 28),
            },
           ],
           position: (20, 5),
          },
         ],
         position: (19, 9),
        },
        position: (8, 45),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "executable",
        position: (27, 3),
       },
      ],
     },
     to: String {
      parts: [
       Interpolation {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (27, 19),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "package",
            position: (27, 23),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: "/bin/couchdb",
        position: (27, 31),
       },
      ],
      position: (27, 16),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (33, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (35, 5),
           },
           Raw {
            content: "couchdb",
            position: (35, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (37, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (37, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (38, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (38, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (38, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (39, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "false",
                  position: (39, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (40, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to run CouchDB Server.\n",
                    position: (41, 1),
                   },
                  ],
                  position: (40, 23),
                 },
                },
               ],
               recursive: false,
               position: (37, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "package",
               position: (45, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (45, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (46, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (46, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "package",
                     position: (46, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (47, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (47, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "couchdb3",
                     position: (47, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (48, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (48, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.couchdb3",
                      position: (48, 42),
                     },
                    ],
                    position: (48, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (49, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "CouchDB package to use.\n",
                    position: (50, 1),
                   },
                  ],
                  position: (49, 23),
                 },
                },
               ],
               recursive: false,
               position: (45, 26),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "adminUser",
               position: (54, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (54, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (55, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (55, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (55, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (56, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "admin",
                    position: (56, 20),
                   },
                  ],
                  position: (56, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (57, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Couchdb (i.e. fauxton) account with permission for all dbs and\ntasks.\n",
                    position: (58, 1),
                   },
                  ],
                  position: (57, 23),
                 },
                },
               ],
               recursive: false,
               position: (54, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "adminPass",
               position: (63, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (63, 19),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (64, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (64, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "nullOr",
                      position: (64, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (64, 29),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "str",
                       position: (64, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (65, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "null",
                  position: (65, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (66, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Couchdb (i.e. fauxton) account with permission for all dbs and\ntasks.\n",
                    position: (67, 1),
                   },
                  ],
                  position: (66, 23),
                 },
                },
               ],
               recursive: false,
               position: (63, 28),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "user",
               position: (72, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (72, 14),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (73, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (73, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (73, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (74, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "couchdb",
                    position: (74, 20),
                   },
                  ],
                  position: (74, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (75, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "User account under which couchdb runs.\n",
                    position: (76, 1),
                   },
                  ],
                  position: (75, 23),
                 },
                },
               ],
               recursive: false,
               position: (72, 23),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "group",
               position: (80, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (80, 15),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (81, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (81, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (81, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (82, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "couchdb",
                    position: (82, 20),
                   },
                  ],
                  position: (82, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (83, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Group account under which couchdb runs.\n",
                    position: (84, 1),
                   },
                  ],
                  position: (83, 23),
                 },
                },
               ],
               recursive: false,
               position: (80, 24),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "databaseDir",
               position: (90, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (90, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (91, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (91, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (91, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (92, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/var/lib/couchdb",
                    position: (92, 20),
                   },
                  ],
                  position: (92, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (93, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Specifies location of CouchDB database files (*.couch named). This\nlocation should be writable and readable for the user the CouchDB\nservice runs as (couchdb by default).\n",
                    position: (94, 1),
                   },
                  ],
                  position: (93, 23),
                 },
                },
               ],
               recursive: false,
               position: (90, 30),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "uriFile",
               position: (100, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (100, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (101, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (101, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (101, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (102, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/run/couchdb/couchdb.uri",
                    position: (102, 20),
                   },
                  ],
                  position: (102, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (103, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "This file contains the full URI that can be used to access this\ninstance of CouchDB. It is used to help discover the port CouchDB is\nrunning on (if it was set to 0 (e.g. automatically assigned any free\none). This file should be writable and readable for the user that\nruns the CouchDB service (couchdb by default).\n",
                    position: (104, 1),
                   },
                  ],
                  position: (103, 23),
                 },
                },
               ],
               recursive: false,
               position: (100, 26),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "viewIndexDir",
               position: (112, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (112, 22),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (113, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (113, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (113, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (114, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/var/lib/couchdb",
                    position: (114, 20),
                   },
                  ],
                  position: (114, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (115, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Specifies location of CouchDB view index files. This location should\nbe writable and readable for the user that runs the CouchDB service\n(couchdb by default).\n",
                    position: (116, 1),
                   },
                  ],
                  position: (115, 23),
                 },
                },
               ],
               recursive: false,
               position: (112, 31),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "bindAddress",
               position: (122, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (122, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (123, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (123, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (123, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (124, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "127.0.0.1",
                    position: (124, 20),
                   },
                  ],
                  position: (124, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (125, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Defines the IP address by which CouchDB will be accessible.\n",
                    position: (126, 1),
                   },
                  ],
                  position: (125, 23),
                 },
                },
               ],
               recursive: false,
               position: (122, 30),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "port",
               position: (130, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (130, 14),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (131, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (131, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "int",
                     position: (131, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (132, 9),
                   },
                  ],
                 },
                 to: Int {
                  value: 5984,
                  position: (132, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (133, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Defined the port number to listen.\n",
                    position: (134, 1),
                   },
                  ],
                  position: (133, 23),
                 },
                },
               ],
               recursive: false,
               position: (130, 23),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "logFile",
               position: (138, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (138, 17),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (139, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (139, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (139, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (140, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/var/log/couchdb.log",
                    position: (140, 20),
                   },
                  ],
                  position: (140, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (141, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Specifies the location of file for logging output.\n",
                    position: (142, 1),
                   },
                  ],
                  position: (141, 23),
                 },
                },
               ],
               recursive: false,
               position: (138, 26),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "extraConfig",
               position: (146, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (146, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (147, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (147, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (147, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (148, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (148, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (149, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Extra configuration. Overrides any other cofiguration.\n",
                    position: (150, 1),
                   },
                  ],
                  position: (149, 23),
                 },
                },
               ],
               recursive: false,
               position: (146, 30),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "argsFile",
               position: (154, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (154, 18),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (155, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (155, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (155, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (156, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (156, 22),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "package",
                        position: (156, 26),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/etc/vm.args",
                    position: (156, 34),
                   },
                  ],
                  position: (156, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "defaultText",
                    position: (157, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (157, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "\"config.",
                      position: (157, 43),
                     },
                     Interpolation {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "opt",
                        position: (157, 53),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "package",
                          position: (157, 57),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/etc/vm.args\"",
                      position: (157, 65),
                     },
                    ],
                    position: (157, 41),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (158, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "vm.args configuration. Overrides Couchdb's Erlang VM parameters file.\n",
                    position: (159, 1),
                   },
                  ],
                  position: (158, 23),
                 },
                },
               ],
               recursive: false,
               position: (154, 27),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "configFile",
               position: (163, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (163, 20),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (164, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (164, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "path",
                     position: (164, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (165, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Configuration file for persisting runtime changes. File\nneeds to be readable and writable from couchdb user/group.\n",
                    position: (166, 1),
                   },
                  ],
                  position: (165, 23),
                 },
                },
               ],
               recursive: false,
               position: (163, 29),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (35, 24),
         },
        },
       ],
       recursive: false,
       position: (33, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (177, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (177, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (177, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (177, 24),
           },
           Raw {
            content: "couchdb",
            position: (177, 33),
           },
           Raw {
            content: "enable",
            position: (177, 41),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (179, 5),
             },
             Raw {
              content: "systemPackages",
              position: (179, 17),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (179, 36),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "package",
                 position: (179, 40),
                },
               ],
              },
              default: None,
             },
            ],
            position: (179, 34),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (181, 5),
             },
             Raw {
              content: "couchdb",
              position: (181, 14),
             },
             Raw {
              content: "configFile",
              position: (181, 22),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkDefault",
             position: (181, 35),
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "/var/lib/couchdb/local.ini",
                position: (181, 46),
               },
              ],
              position: (181, 45),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (183, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (183, 13),
             },
             Raw {
              content: "rules",
              position: (183, 22),
             },
            ],
           },
           to: List {
            elements: [
             String {
              parts: [
               Raw {
                content: "d '",
                position: (184, 8),
               },
               Interpolation {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "dirOf",
                  position: (184, 13),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (184, 19),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "uriFile",
                      position: (184, 23),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
               Raw {
                content: "' - ",
                position: (184, 31),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (184, 37),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "user",
                    position: (184, 41),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (184, 46),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (184, 49),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (184, 53),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (184, 59),
               },
              ],
              position: (184, 7),
             },
             String {
              parts: [
               Raw {
                content: "f '",
                position: (185, 8),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (185, 13),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "logFile",
                    position: (185, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' - ",
                position: (185, 25),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (185, 31),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "user",
                    position: (185, 35),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (185, 40),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (185, 43),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (185, 47),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (185, 53),
               },
              ],
              position: (185, 7),
             },
             String {
              parts: [
               Raw {
                content: "d '",
                position: (186, 8),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (186, 13),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "databaseDir",
                    position: (186, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' -  ",
                position: (186, 29),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (186, 36),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "user",
                    position: (186, 40),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (186, 45),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (186, 48),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (186, 52),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (186, 58),
               },
              ],
              position: (186, 7),
             },
             String {
              parts: [
               Raw {
                content: "d '",
                position: (187, 8),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (187, 13),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "viewIndexDir",
                    position: (187, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' -  ",
                position: (187, 30),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (187, 37),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "user",
                    position: (187, 41),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (187, 46),
               },
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (187, 49),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (187, 53),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (187, 59),
               },
              ],
              position: (187, 7),
             },
            ],
            position: (183, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (190, 5),
             },
             Raw {
              content: "services",
              position: (190, 13),
             },
             Raw {
              content: "couchdb",
              position: (190, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (191, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "CouchDB Server",
                 position: (191, 22),
                },
               ],
               position: (191, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (192, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (192, 21),
                  },
                 ],
                 position: (192, 20),
                },
               ],
               position: (192, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "preStart",
                 position: (194, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "touch ",
                 position: (195, 1),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (195, 17),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "configFile",
                     position: (195, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "\n",
                 position: (195, 32),
                },
               ],
               position: (194, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "environment",
                 position: (198, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "ERL_FLAGS",
                    position: (204, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "-couch_ini ",
                    position: (204, 22),
                   },
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (204, 35),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "package",
                        position: (204, 39),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/etc/default.ini ",
                    position: (204, 47),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "configFile",
                     position: (204, 66),
                    },
                   },
                   Raw {
                    content: " ",
                    position: (204, 77),
                   },
                   Interpolation {
                    expression: FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (204, 80),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "writeText",
                         position: (204, 85),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      String {
                       parts: [
                        Raw {
                         content: "couchdb-extra.ini",
                         position: (204, 96),
                        },
                       ],
                       position: (204, 95),
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (204, 115),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "extraConfig",
                          position: (204, 119),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   },
                   Raw {
                    content: " ",
                    position: (204, 131),
                   },
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (204, 134),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "configFile",
                        position: (204, 138),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (204, 20),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "COUCHDB_ARGS_FILE",
                    position: (206, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (206, 31),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "argsFile",
                        position: (206, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (206, 27),
                 },
                },
               ],
               recursive: false,
               position: (198, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (209, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "User",
                    position: (210, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (210, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "user",
                     position: (210, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "Group",
                    position: (211, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (211, 17),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "group",
                     position: (211, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "ExecStart",
                    position: (212, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "executable",
                  position: (212, 21),
                 },
                },
               ],
               recursive: false,
               position: (209, 23),
              },
             },
            ],
            recursive: false,
            position: (190, 32),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (216, 5),
             },
             Raw {
              content: "users",
              position: (216, 11),
             },
             Raw {
              content: "couchdb",
              position: (216, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (217, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "CouchDB Server user",
                 position: (217, 22),
                },
               ],
               position: (217, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (218, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "couchdb",
                 position: (218, 16),
                },
               ],
               position: (218, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "uid",
                 position: (219, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (219, 13),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "ids",
                  position: (219, 20),
                 },
                 Raw {
                  content: "uids",
                  position: (219, 24),
                 },
                 Raw {
                  content: "couchdb",
                  position: (219, 29),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (216, 27),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (222, 5),
             },
             Raw {
              content: "groups",
              position: (222, 11),
             },
             Raw {
              content: "couchdb",
              position: (222, 18),
             },
             Raw {
              content: "gid",
              position: (222, 26),
             },
            ],
           },
           to: PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (222, 32),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "ids",
               position: (222, 39),
              },
              Raw {
               content: "gids",
               position: (222, 43),
              },
              Raw {
               content: "couchdb",
               position: (222, 48),
              },
             ],
            },
            default: None,
           },
          },
         ],
         recursive: false,
         position: (177, 48),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (29, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}