---
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: "dataDir",
        position: (6, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "/var/lib/mautrix-telegram",
        position: (6, 14),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "registrationFile",
        position: (7, 3),
       },
      ],
     },
     String {
      parts: [
       Expression {
        expression: Variable {
         identifier: "dataDir",
         position: (7, 25),
        },
       },
       Raw {
        content: "/telegram-registration.yaml",
        position: (7, 33),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (8, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (8, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (8, 16),
        },
        Raw {
         content: "mautrix-telegram",
         position: (8, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "settingsFormat",
        position: (9, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (9, 20),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "formats",
          position: (9, 25),
         },
         Raw {
          content: "json",
          position: (9, 33),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [],
        recursive: false,
        position: (9, 38),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "settingsFileUnsubstituted",
        position: (10, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "settingsFormat",
        position: (10, 31),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "generate",
          position: (10, 46),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "mautrix-telegram-config-unsubstituted.json",
          position: (10, 56),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (10, 100),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "settings",
           position: (10, 104),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "settingsFile",
        position: (11, 3),
       },
      ],
     },
     String {
      parts: [
       Expression {
        expression: Variable {
         identifier: "dataDir",
         position: (11, 21),
        },
       },
       Raw {
        content: "/config.json",
        position: (11, 29),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (14, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (15, 5),
           },
           Raw {
            content: "mautrix-telegram",
            position: (15, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (16, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (16, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "Mautrix-Telegram, a Matrix-Telegram hybrid puppeting/relaybot bridge",
                 position: (16, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "settings",
               position: (18, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (18, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "apply",
                    position: (19, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "recursiveUpdate",
                   position: (19, 17),
                  },
                  arguments: [
                   Variable {
                    identifier: "default",
                    position: (19, 33),
                   },
                  ],
                 },
                ),
                Inherit(
                 Some(
                  Variable {
                   identifier: "settingsFormat",
                   position: (20, 18),
                  },
                 ),
                 [
                  Raw {
                   content: "type",
                   position: (20, 34),
                  },
                 ],
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (21, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "appservice",
                       position: (22, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "database",
                          position: (23, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "sqlite:///",
                          position: (23, 25),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "dataDir",
                           position: (23, 37),
                          },
                         },
                         Raw {
                          content: "/mautrix-telegram.db",
                          position: (23, 45),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "database_opts",
                          position: (24, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [],
                        recursive: false,
                        position: (24, 29),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "hostname",
                          position: (25, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "0.0.0.0",
                          position: (25, 25),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "port",
                          position: (26, 13),
                         },
                        ],
                       },
                       Int {
                        value: 8080,
                        position: (26, 20),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "address",
                          position: (27, 13),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "http://localhost:",
                          position: (27, 24),
                         },
                         Expression {
                          expression: FunctionApplication {
                           function: Variable {
                            identifier: "toString",
                            position: (27, 43),
                           },
                           arguments: [
                            Variable {
                             identifier: "port",
                             position: (27, 52),
                            },
                           ],
                          },
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: true,
                     position: (22, 24),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "bridge",
                       position: (30, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "permissions",
                          position: (31, 13),
                         },
                         Expression {
                          expression: String {
                           parts: [
                            Raw {
                             content: "*",
                             position: (31, 26),
                            },
                           ],
                          },
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "relaybot",
                          position: (31, 32),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "relaybot",
                          position: (32, 13),
                         },
                         Raw {
                          content: "whitelist",
                          position: (32, 22),
                         },
                        ],
                       },
                       List {
                        elements: [],
                        position: (32, 34),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "double_puppet_server_map",
                          position: (33, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [],
                        recursive: false,
                        position: (33, 40),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "login_shared_secret_map",
                          position: (34, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [],
                        recursive: false,
                        position: (34, 39),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (30, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "logging",
                       position: (37, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "version",
                          position: (38, 13),
                         },
                        ],
                       },
                       Int {
                        value: 1,
                        position: (38, 23),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "formatters",
                          position: (40, 13),
                         },
                         Raw {
                          content: "precise",
                          position: (40, 24),
                         },
                         Raw {
                          content: "format",
                          position: (40, 32),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "[%(levelname)s@%(name)s] %(message)s",
                          position: (40, 42),
                         },
                        ],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "handlers",
                          position: (42, 13),
                         },
                         Raw {
                          content: "console",
                          position: (42, 22),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "class",
                             position: (43, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "logging.StreamHandler",
                             position: (43, 24),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "formatter",
                             position: (44, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "precise",
                             position: (44, 28),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (42, 32),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "loggers",
                          position: (47, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "mau",
                             position: (48, 15),
                            },
                            Raw {
                             content: "level",
                             position: (48, 19),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "INFO",
                             position: (48, 28),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "telethon",
                             position: (49, 15),
                            },
                            Raw {
                             content: "level",
                             position: (49, 24),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "INFO",
                             position: (49, 33),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "aiohttp",
                             position: (53, 15),
                            },
                            Raw {
                             content: "level",
                             position: (53, 23),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "WARNING",
                             position: (53, 32),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (47, 23),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "root",
                          position: (57, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "level",
                             position: (58, 15),
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "INFO",
                             position: (58, 24),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "handlers",
                             position: (59, 15),
                            },
                           ],
                          },
                          List {
                           elements: [
                            String {
                             parts: [
                              Raw {
                               content: "console",
                               position: (59, 29),
                              },
                             ],
                            },
                           ],
                           position: (59, 26),
                          },
                         ),
                        ],
                        recursive: false,
                        position: (57, 20),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (37, 21),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (21, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (63, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (63, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "{\n  homeserver = {\n    address = \"http://localhost:8008\";\n    domain = \"public-domain.tld\";\n  };\n\n  appservice.public = {\n    prefix = \"/public\";\n    external = \"https://public-appservice-address/public\";\n  };\n\n  bridge.permissions = {\n    \"example.com\" = \"full\";\n    \"@admin:example.com\" = \"admin\";\n  };\n}\n",
                      position: (64, 1),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (81, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "<filename>config.yaml</filename> configuration as a Nix attribute set.\nConfiguration options should match those described in\n<link xlink:href=\"https://github.com/tulir/mautrix-telegram/blob/master/example-config.yaml\">\nexample-config.yaml</link>.\n</para>\n\n<para>\nSecret tokens should be specified using <option>environmentFile</option>\ninstead of this world-readable attribute set.\n",
                    position: (82, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: true,
               position: (18, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environmentFile",
               position: (94, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (94, 25),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (95, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (95, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (95, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (95, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "path",
                       position: (95, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (96, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (96, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (97, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "File containing environment variables to be passed to the mautrix-telegram service,\nin which secret tokens can be specified securely by defining values for\n<literal>MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN</literal>,\n<literal>MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN</literal>,\n<literal>MAUTRIX_TELEGRAM_TELEGRAM_API_ID</literal>,\n<literal>MAUTRIX_TELEGRAM_TELEGRAM_API_HASH</literal> and optionally\n<literal>MAUTRIX_TELEGRAM_TELEGRAM_BOT_TOKEN</literal>.\n",
                    position: (98, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (94, 34),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "serviceDependencies",
               position: (108, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (108, 29),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (109, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (109, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "listOf",
                    position: (109, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "str",
                     position: (109, 35),
                    },
                   ],
                  },
                  position: (109, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (110, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "optional",
                   position: (110, 19),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (110, 28),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "services",
                       position: (110, 35),
                      },
                      Raw {
                       content: "matrix-synapse",
                       position: (110, 44),
                      },
                      Raw {
                       content: "enable",
                       position: (110, 59),
                      },
                     ],
                    },
                    default: None,
                   },
                   String {
                    parts: [
                     Raw {
                      content: "matrix-synapse.service",
                      position: (110, 67),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (111, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (111, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "optional config.services.matrix-synapse.enable \"matrix-synapse.service\"\n",
                      position: (112, 1),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (114, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "List of Systemd services to require and wait for when starting the application service.\n",
                    position: (115, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (108, 38),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (15, 33),
         },
        ),
       ],
       recursive: false,
       position: (14, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (121, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (121, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (121, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (121, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (122, 5),
             },
             Raw {
              content: "services",
              position: (122, 13),
             },
             Raw {
              content: "mautrix-telegram",
              position: (122, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (123, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Mautrix-Telegram, a Matrix-Telegram hybrid puppeting/relaybot bridge.",
                 position: (123, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (125, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (125, 21),
                  },
                 ],
                },
               ],
               position: (125, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wants",
                 position: (126, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Concatenation,
               operands: [
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "network-online.target",
                     position: (126, 18),
                    },
                   ],
                  },
                 ],
                 position: (126, 15),
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (126, 46),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "serviceDependencies",
                    position: (126, 50),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (126, 43),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (127, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Concatenation,
               operands: [
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "network-online.target",
                     position: (127, 18),
                    },
                   ],
                  },
                 ],
                 position: (127, 15),
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (127, 46),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "serviceDependencies",
                    position: (127, 50),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (127, 43),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "preStart",
                 position: (129, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Addition,
               operands: [
                String {
                 parts: [
                  Raw {
                   content: "# Not all secrets can be passed as environment variable (yet)\n# https://github.com/tulir/mautrix-telegram/issues/584\n[ -f ",
                   position: (130, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "settingsFile",
                    position: (132, 16),
                   },
                  },
                  Raw {
                   content: " ] && rm -f ",
                   position: (132, 29),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "settingsFile",
                    position: (132, 43),
                   },
                  },
                  Raw {
                   content: "\nold_umask=$(umask)\numask 0177\n",
                   position: (132, 56),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (135, 11),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "envsubst",
                       position: (135, 16),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/envsubst \\\n  -o ",
                   position: (135, 25),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "settingsFile",
                    position: (136, 16),
                   },
                  },
                  Raw {
                   content: " \\\n  -i ",
                   position: (136, 29),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "settingsFileUnsubstituted",
                    position: (137, 16),
                   },
                  },
                  Raw {
                   content: "\numask $old_umask\n\n# generate the appservice's registration file if absent\nif [ ! -f ",
                   position: (137, 42),
                  },
                  Raw {
                   content: "'",
                   position: (141, 19),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "registrationFile",
                    position: (141, 22),
                   },
                  },
                  Raw {
                   content: "' ]; then\n  ",
                   position: (141, 39),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (142, 13),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "mautrix-telegram",
                       position: (142, 18),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/mautrix-telegram \\\n    --generate-registration \\\n    --base-config=",
                   position: (142, 35),
                  },
                  Raw {
                   content: "'",
                   position: (144, 27),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (144, 30),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "mautrix-telegram",
                       position: (144, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/",
                   position: (144, 52),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (144, 55),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "mautrix-telegram",
                       position: (144, 60),
                      },
                      Raw {
                       content: "pythonModule",
                       position: (144, 77),
                      },
                      Raw {
                       content: "sitePackages",
                       position: (144, 90),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/mautrix_telegram/example-config.yaml' \\\n    --config=",
                   position: (144, 103),
                  },
                  Raw {
                   content: "'",
                   position: (145, 22),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "settingsFile",
                    position: (145, 25),
                   },
                  },
                  Raw {
                   content: "' \\\n    --registration=",
                   position: (145, 38),
                  },
                  Raw {
                   content: "'",
                   position: (146, 28),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "registrationFile",
                    position: (146, 31),
                   },
                  },
                  Raw {
                   content: "'\nfi\n",
                   position: (146, 48),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (148, 12),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "optionalString",
                     position: (148, 16),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  HasProperty {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (148, 32),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "mautrix-telegram",
                       position: (148, 37),
                      },
                     ],
                    },
                    default: None,
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "alembic",
                      position: (148, 56),
                     },
                    ],
                   },
                   position: (148, 54),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "# run automatic database init and migration scripts\n",
                     position: (149, 1),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (150, 11),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "mautrix-telegram",
                         position: (150, 16),
                        },
                        Raw {
                         content: "alembic",
                         position: (150, 33),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/bin/alembic -x config=",
                     position: (150, 41),
                    },
                    Raw {
                     content: "'",
                     position: (150, 64),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "settingsFile",
                      position: (150, 67),
                     },
                    },
                    Raw {
                     content: "' upgrade head\n",
                     position: (150, 80),
                    },
                   ],
                  },
                 ],
                },
               ],
               position: (148, 10),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (153, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Type",
                    position: (154, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "simple",
                    position: (154, 17),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (155, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "always",
                    position: (155, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ProtectSystem",
                    position: (157, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "strict",
                    position: (157, 26),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ProtectHome",
                    position: (158, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (158, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ProtectKernelTunables",
                    position: (159, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (159, 33),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ProtectKernelModules",
                    position: (160, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (160, 32),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ProtectControlGroups",
                    position: (161, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (161, 32),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "DynamicUser",
                    position: (163, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (163, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "PrivateTmp",
                    position: (164, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (164, 22),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (165, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (165, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "mautrix-telegram",
                     position: (165, 33),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "StateDirectory",
                    position: (166, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "baseNameOf",
                   position: (166, 26),
                  },
                  arguments: [
                   Variable {
                    identifier: "dataDir",
                    position: (166, 37),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "UMask",
                    position: (167, 9),
                   },
                  ],
                 },
                 Int {
                  value: 27,
                  position: (167, 17),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "EnvironmentFile",
                    position: (168, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (168, 27),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "environmentFile",
                     position: (168, 31),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (170, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "",
                    position: (171, 1),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (171, 13),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "mautrix-telegram",
                        position: (171, 18),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/mautrix-telegram \\\n  --config=",
                    position: (171, 35),
                   },
                   Raw {
                    content: "'",
                    position: (172, 22),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "settingsFile",
                     position: (172, 25),
                    },
                   },
                   Raw {
                    content: "'\n",
                    position: (172, 38),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (153, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "restartTriggers",
                 position: (176, 7),
                },
               ],
              },
              List {
               elements: [
                Variable {
                 identifier: "settingsFileUnsubstituted",
                 position: (176, 27),
                },
               ],
               position: (176, 25),
              },
             ),
            ],
            recursive: false,
            position: (122, 41),
           },
          ),
         ],
         recursive: false,
         position: (121, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (180, 3),
        },
        Raw {
         content: "maintainers",
         position: (180, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (180, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "pacien",
          position: (180, 42),
         },
         Variable {
          identifier: "vskilet",
          position: (180, 49),
         },
        ],
        position: (180, 40),
       },
       position: (180, 22),
      },
     ),
    ],
    recursive: false,
    position: (13, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}