---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    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: "etebase-server",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "pythonEnv",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 15),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "python3",
          position: (8, 20),
         },
         Raw {
          content: "withPackages",
          position: (8, 28),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Function {
        argument: Some(
         "ps",
        ),
        arguments: FunctionArguments {
         arguments: [],
         ellipsis: false,
        },
        definition: With {
         expression: Variable {
          identifier: "ps",
          position: (8, 51),
         },
         target: List {
          elements: [
           Variable {
            identifier: "etebase-server",
            position: (9, 7),
           },
           Variable {
            identifier: "daphne",
            position: (9, 22),
           },
          ],
          position: (9, 5),
         },
         position: (8, 46),
        },
        position: (8, 42),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "iniFmt",
        position: (11, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (11, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "formats",
          position: (11, 17),
         },
         Raw {
          content: "ini",
          position: (11, 25),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [],
        recursive: false,
        position: (11, 29),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configIni",
        position: (13, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "iniFmt",
        position: (13, 15),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "generate",
          position: (13, 22),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "etebase-server.ini",
          position: (13, 32),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (13, 52),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "settings",
           position: (13, 56),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "defaultUser",
        position: (15, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "etebase-server",
        position: (15, 18),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (18, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRemovedOptionModule",
          position: (19, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (20, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (20, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "customIni",
               position: (20, 38),
              },
             ],
            },
           ],
           position: (20, 7),
          },
          String {
           parts: [
            Raw {
             content: "Set the option `services.etebase-server.settings' instead.",
             position: (21, 8),
            },
           ],
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRemovedOptionModule",
          position: (22, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (23, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (23, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "database",
               position: (23, 38),
              },
             ],
            },
           ],
           position: (23, 7),
          },
          String {
           parts: [
            Raw {
             content: "Set the option `services.etebase-server.settings.database' instead.",
             position: (24, 8),
            },
           ],
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (25, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (26, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (26, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "secretFile",
               position: (26, 38),
              },
             ],
            },
           ],
           position: (26, 7),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (27, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (27, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "settings",
               position: (27, 38),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "secret_file",
               position: (27, 49),
              },
             ],
            },
           ],
           position: (27, 7),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (28, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (29, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (29, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "host",
               position: (29, 38),
              },
             ],
            },
           ],
           position: (29, 7),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (30, 10),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "etebase-server",
               position: (30, 21),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "settings",
               position: (30, 38),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "allowed_hosts",
               position: (30, 49),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "allowed_host1",
               position: (30, 65),
              },
             ],
            },
           ],
           position: (30, 7),
          },
         ],
        },
       ],
       position: (18, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (33, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (34, 5),
           },
           Raw {
            content: "etebase-server",
            position: (34, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (35, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (35, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (36, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (36, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (36, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (37, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (37, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (38, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (38, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (39, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to enable the Etebase server.\n\nOnce enabled you need to create an admin user by invoking the\nshell command <literal>etebase-server createsuperuser</literal> with\nthe user specified by the <literal>user</literal> option or a superuser.\nThen you can login and create accounts on your-etebase-server.com/admin\n",
                    position: (40, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (35, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "dataDir",
               position: (49, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (49, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (50, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (50, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (50, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (51, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/var/lib/etebase-server",
                    position: (51, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (52, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Directory to store the Etebase server data.",
                    position: (52, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (49, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "port",
               position: (55, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (55, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (56, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (56, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "nullOr",
                    position: (56, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "port",
                     position: (56, 35),
                    },
                   ],
                  },
                  position: (56, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (57, 9),
                   },
                  ],
                 },
                 Int {
                  value: 8001,
                  position: (57, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (58, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Port to listen on.",
                    position: (58, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (55, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "openFirewall",
               position: (61, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (61, 22),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (62, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (62, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (62, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (63, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (63, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (64, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to open ports in the firewall for the server.\n",
                    position: (65, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (61, 31),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "unixSocket",
               position: (69, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (69, 20),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (70, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (70, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "nullOr",
                    position: (70, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "str",
                     position: (70, 35),
                    },
                   ],
                  },
                  position: (70, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (71, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (71, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (72, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "The path to the socket to bind to.",
                    position: (72, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (73, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/run/etebase-server/etebase-server.sock",
                    position: (73, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (69, 29),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "settings",
               position: (76, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (76, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (77, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (77, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "types",
                      position: (77, 20),
                     },
                     Raw {
                      content: "submodule",
                      position: (77, 26),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "freeformType",
                         position: (78, 11),
                        },
                       ],
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "iniFmt",
                        position: (78, 26),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "type",
                          position: (78, 33),
                         },
                        ],
                       },
                       default: None,
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "options",
                         position: (80, 11),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "global",
                            position: (81, 13),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "debug",
                               position: (82, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (82, 23),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (83, 17),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (83, 24),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "bool",
                                     position: (83, 30),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (84, 17),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "false",
                                  position: (84, 27),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (85, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "Whether to set django's DEBUG flag.\n",
                                    position: (86, 1),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (82, 32),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "secret_file",
                               position: (89, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (89, 29),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (90, 17),
                                   },
                                  ],
                                 },
                                 With {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (90, 29),
                                  },
                                  target: FunctionApplication {
                                   function: Variable {
                                    identifier: "nullOr",
                                    position: (90, 36),
                                   },
                                   arguments: [
                                    Variable {
                                     identifier: "str",
                                     position: (90, 43),
                                    },
                                   ],
                                  },
                                  position: (90, 24),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (91, 17),
                                   },
                                  ],
                                 },
                                 Variable {
                                  identifier: "null",
                                  position: (91, 27),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (92, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The path to a file containing the secret\nused as django's SECRET_KEY.\n",
                                    position: (93, 1),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (89, 38),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "static_root",
                               position: (97, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (97, 29),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (98, 17),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (98, 24),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "str",
                                     position: (98, 30),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (99, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Expression {
                                    expression: PropertyAccess {
                                     expression: Variable {
                                      identifier: "cfg",
                                      position: (99, 30),
                                     },
                                     attribute_path: AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "dataDir",
                                        position: (99, 34),
                                       },
                                      ],
                                     },
                                     default: None,
                                    },
                                   },
                                   Raw {
                                    content: "/static",
                                    position: (99, 42),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "defaultText",
                                    position: (100, 17),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "literalExpression",
                                   position: (100, 31),
                                  },
                                  arguments: [
                                   String {
                                    parts: [
                                     Raw {
                                      content: "\"",
                                      position: (100, 51),
                                     },
                                     Raw {
                                      content: "$",
                                      position: (100, 52),
                                     },
                                     Raw {
                                      content: "{config.services.etebase-server.dataDir}/static\"",
                                      position: (100, 55),
                                     },
                                    ],
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (101, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The directory for static files.",
                                    position: (101, 32),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (97, 38),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "media_root",
                               position: (103, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (103, 28),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (104, 17),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (104, 24),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "str",
                                     position: (104, 30),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (105, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Expression {
                                    expression: PropertyAccess {
                                     expression: Variable {
                                      identifier: "cfg",
                                      position: (105, 30),
                                     },
                                     attribute_path: AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "dataDir",
                                        position: (105, 34),
                                       },
                                      ],
                                     },
                                     default: None,
                                    },
                                   },
                                   Raw {
                                    content: "/media",
                                    position: (105, 42),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "defaultText",
                                    position: (106, 17),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "literalExpression",
                                   position: (106, 31),
                                  },
                                  arguments: [
                                   String {
                                    parts: [
                                     Raw {
                                      content: "\"",
                                      position: (106, 51),
                                     },
                                     Raw {
                                      content: "$",
                                      position: (106, 52),
                                     },
                                     Raw {
                                      content: "{config.services.etebase-server.dataDir}/media\"",
                                      position: (106, 55),
                                     },
                                    ],
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (107, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The media directory.",
                                    position: (107, 32),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (103, 37),
                              },
                             ],
                            },
                           ),
                          ],
                          recursive: false,
                          position: (81, 22),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "allowed_hosts",
                            position: (110, 13),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "allowed_host1",
                               position: (111, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (111, 31),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (112, 17),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (112, 24),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "str",
                                     position: (112, 30),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (113, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "0.0.0.0",
                                    position: (113, 28),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "example",
                                    position: (114, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "localhost",
                                    position: (114, 28),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (115, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The main host that is allowed access.\n",
                                    position: (116, 1),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (111, 40),
                              },
                             ],
                            },
                           ),
                          ],
                          recursive: false,
                          position: (110, 29),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "database",
                            position: (120, 13),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "engine",
                               position: (121, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (121, 24),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (122, 17),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: PropertyAccess {
                                   expression: Variable {
                                    identifier: "types",
                                    position: (122, 24),
                                   },
                                   attribute_path: AttributePath {
                                    attributes: [
                                     Raw {
                                      content: "enum",
                                      position: (122, 30),
                                     },
                                    ],
                                   },
                                   default: None,
                                  },
                                  arguments: [
                                   List {
                                    elements: [
                                     String {
                                      parts: [
                                       Raw {
                                        content: "django.db.backends.sqlite3",
                                        position: (122, 38),
                                       },
                                      ],
                                     },
                                     String {
                                      parts: [
                                       Raw {
                                        content: "django.db.backends.postgresql",
                                        position: (122, 67),
                                       },
                                      ],
                                     },
                                    ],
                                    position: (122, 35),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (123, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "django.db.backends.sqlite3",
                                    position: (123, 28),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (124, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The database engine to use.",
                                    position: (124, 32),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (121, 33),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "name",
                               position: (126, 15),
                              },
                             ],
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "mkOption",
                              position: (126, 22),
                             },
                             arguments: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "type",
                                    position: (127, 17),
                                   },
                                  ],
                                 },
                                 PropertyAccess {
                                  expression: Variable {
                                   identifier: "types",
                                   position: (127, 24),
                                  },
                                  attribute_path: AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "str",
                                     position: (127, 30),
                                    },
                                   ],
                                  },
                                  default: None,
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "default",
                                    position: (128, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Expression {
                                    expression: PropertyAccess {
                                     expression: Variable {
                                      identifier: "cfg",
                                      position: (128, 30),
                                     },
                                     attribute_path: AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "dataDir",
                                        position: (128, 34),
                                       },
                                      ],
                                     },
                                     default: None,
                                    },
                                   },
                                   Raw {
                                    content: "/db.sqlite3",
                                    position: (128, 42),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "defaultText",
                                    position: (129, 17),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "literalExpression",
                                   position: (129, 31),
                                  },
                                  arguments: [
                                   String {
                                    parts: [
                                     Raw {
                                      content: "\"",
                                      position: (129, 51),
                                     },
                                     Raw {
                                      content: "$",
                                      position: (129, 52),
                                     },
                                     Raw {
                                      content: "{config.services.etebase-server.dataDir}/db.sqlite3\"",
                                      position: (129, 55),
                                     },
                                    ],
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (130, 17),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "The database name.",
                                    position: (130, 32),
                                   },
                                  ],
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (126, 31),
                              },
                             ],
                            },
                           ),
                          ],
                          recursive: false,
                          position: (120, 24),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (80, 21),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (77, 36),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (135, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (135, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (136, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Configuration for <package>etebase-server</package>. Refer to\n<link xlink:href=\"https://github.com/etesync/server/blob/master/etebase-server.ini.example\" />\nand <link xlink:href=\"https://github.com/etesync/server/wiki\" />\nfor details on supported values.\n",
                    position: (137, 1),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (142, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "global",
                       position: (143, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "debug",
                          position: (144, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "true",
                        position: (144, 21),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "media_root",
                          position: (145, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "/path/to/media",
                          position: (145, 27),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (143, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "allowed_hosts",
                       position: (147, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "allowed_host2",
                          position: (148, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "localhost",
                          position: (148, 30),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (147, 27),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (142, 19),
                 },
                ),
               ],
               recursive: false,
               position: (76, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (153, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (153, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (154, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (154, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (154, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (155, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "defaultUser",
                  position: (155, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (156, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "User under which Etebase server runs.",
                    position: (156, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (153, 23),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (34, 31),
         },
        ),
       ],
       recursive: false,
       position: (33, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (161, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (161, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (161, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (161, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (163, 5),
             },
             Raw {
              content: "systemPackages",
              position: (163, 17),
             },
            ],
           },
           With {
            expression: Variable {
             identifier: "pkgs",
             position: (163, 39),
            },
            target: List {
             elements: [
              FunctionApplication {
               function: Variable {
                identifier: "runCommand",
                position: (164, 8),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "etebase-server",
                   position: (164, 20),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "buildInputs",
                      position: (165, 9),
                     },
                    ],
                   },
                   List {
                    elements: [
                     Variable {
                      identifier: "makeWrapper",
                      position: (165, 25),
                     },
                    ],
                    position: (165, 23),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (164, 36),
                },
                String {
                 parts: [
                  Raw {
                   content: "makeWrapper ",
                   position: (167, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "pythonEnv",
                    position: (167, 23),
                   },
                  },
                  Raw {
                   content: "/bin/etebase-server \\\n  $out/bin/etebase-server \\\n  --run \"cd ",
                   position: (167, 33),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (169, 23),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "dataDir",
                       position: (169, 27),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "\" \\\n  --prefix ETEBASE_EASY_CONFIG_PATH : \"",
                   position: (169, 35),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "configIni",
                    position: (170, 50),
                   },
                  },
                  Raw {
                   content: "\"\n",
                   position: (170, 60),
                  },
                 ],
                },
               ],
              },
             ],
             position: (163, 45),
            },
            position: (163, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (174, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (174, 13),
             },
             Raw {
              content: "rules",
              position: (174, 22),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "d '",
                position: (175, 8),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (175, 13),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (175, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' - ",
                position: (175, 25),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (175, 31),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "user",
                    position: (175, 35),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (175, 40),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (175, 43),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "users",
                    position: (175, 50),
                   },
                   Raw {
                    content: "users",
                    position: (175, 56),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (175, 64),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "user",
                        position: (175, 68),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "group",
                    position: (175, 74),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (175, 80),
               },
              ],
             },
            ],
            position: (174, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (178, 5),
             },
             Raw {
              content: "services",
              position: (178, 13),
             },
             Raw {
              content: "etebase-server",
              position: (178, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (179, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "An Etebase (EteSync 2.0) server",
                 position: (179, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (180, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (180, 18),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "systemd-tmpfiles-setup.service",
                   position: (180, 35),
                  },
                 ],
                },
               ],
               position: (180, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (181, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (181, 21),
                  },
                 ],
                },
               ],
               position: (181, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (182, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (183, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (183, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (183, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (184, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "always",
                    position: (184, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (185, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (185, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "dataDir",
                     position: (185, 32),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (182, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (187, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "PYTHONPATH",
                    position: (188, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "pythonEnv",
                     position: (188, 25),
                    },
                   },
                   Raw {
                    content: "/",
                    position: (188, 35),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (188, 38),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "python3",
                        position: (188, 43),
                       },
                       Raw {
                        content: "sitePackages",
                        position: (188, 51),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ETEBASE_EASY_CONFIG_PATH",
                    position: (189, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "configIni",
                  position: (189, 36),
                 },
                ),
               ],
               recursive: false,
               position: (187, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "preStart",
                 position: (191, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "# Auto-migrate on first run or if the package has changed\nversionFile=\"",
                 position: (192, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (193, 24),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "dataDir",
                     position: (193, 28),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/src-version\"\nif [[ $(cat \"$versionFile\" 2>/dev/null) != ",
                 position: (193, 36),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (194, 54),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "etebase-server",
                     position: (194, 59),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " ]]; then\n  ",
                 position: (194, 74),
                },
                Expression {
                 expression: Variable {
                  identifier: "pythonEnv",
                  position: (195, 13),
                 },
                },
                Raw {
                 content: "/bin/etebase-server migrate --no-input\n  ",
                 position: (195, 23),
                },
                Expression {
                 expression: Variable {
                  identifier: "pythonEnv",
                  position: (196, 13),
                 },
                },
                Raw {
                 content: "/bin/etebase-server collectstatic --no-input --clear\n  echo ",
                 position: (196, 23),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (197, 18),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "etebase-server",
                     position: (197, 23),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " > \"$versionFile\"\nfi\n",
                 position: (197, 38),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "script",
                 position: (200, 7),
                },
               ],
              },
              LetIn {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "networking",
                    position: (202, 11),
                   },
                  ],
                 },
                 IfThenElse {
                  predicate: BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (202, 27),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "unixSocket",
                        position: (202, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (202, 45),
                    },
                   ],
                   position: (202, 42),
                  },
                  then: String {
                   parts: [
                    Raw {
                     content: "-u ",
                     position: (203, 17),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (203, 22),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "unixSocket",
                         position: (203, 26),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                  },
                  else_: String {
                   parts: [
                    Raw {
                     content: "-b 0.0.0.0 -p ",
                     position: (204, 17),
                    },
                    Expression {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "toString",
                       position: (204, 33),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (204, 42),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "port",
                           position: (204, 46),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    },
                   ],
                  },
                  position: (202, 24),
                 },
                ),
               ],
               target: String {
                parts: [
                 Raw {
                  content: "cd \"",
                  position: (206, 1),
                 },
                 Expression {
                  expression: Variable {
                   identifier: "pythonEnv",
                   position: (206, 17),
                  },
                 },
                 Raw {
                  content: "/lib/etebase-server\";\n",
                  position: (206, 27),
                 },
                 Expression {
                  expression: Variable {
                   identifier: "pythonEnv",
                   position: (207, 13),
                  },
                 },
                 Raw {
                  content: "/bin/daphne ",
                  position: (207, 23),
                 },
                 Expression {
                  expression: Variable {
                   identifier: "networking",
                   position: (207, 37),
                  },
                 },
                 Raw {
                  content: " \\\n  etebase_server.asgi:application\n",
                  position: (207, 48),
                 },
                ],
               },
               position: (201, 9),
              },
             ),
            ],
            recursive: false,
            position: (178, 39),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (212, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (212, 13),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (212, 28),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (212, 32),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "defaultUser",
                position: (212, 40),
               },
              ],
              position: (212, 37),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "users",
                   position: (213, 7),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "defaultUser",
                    position: (213, 15),
                   },
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "isSystemUser",
                      position: (214, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "true",
                    position: (214, 24),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (215, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "defaultUser",
                    position: (215, 17),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "home",
                      position: (216, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (216, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "dataDir",
                       position: (216, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                 ],
                 recursive: false,
                 position: (213, 30),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "groups",
                   position: (219, 7),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "defaultUser",
                    position: (219, 16),
                   },
                  },
                 ],
                },
                Map {
                 bindings: [],
                 recursive: false,
                 position: (219, 31),
                },
               ),
              ],
              recursive: false,
              position: (212, 53),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (222, 5),
             },
             Raw {
              content: "firewall",
              position: (222, 16),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (222, 27),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (222, 32),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "openFirewall",
                 position: (222, 36),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (223, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (223, 27),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "port",
                      position: (223, 31),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (223, 25),
                },
               ),
              ],
              recursive: false,
              position: (222, 49),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (161, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (17, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}