---
Function {
 argument: Some(
  "srv",
 ),
 arguments: FunctionArguments {
  arguments: [],
  ellipsis: false,
 },
 definition: Function {
  argument: None,
  arguments: FunctionArguments {
   arguments: [
    FunctionArgument {
     identifier: "port",
     default: None,
    },
    FunctionArgument {
     identifier: "extraConfig",
     default: Some(
      Map {
       bindings: [],
       recursive: false,
       position: (9, 17),
      },
     ),
    },
    FunctionArgument {
     identifier: "extraServices",
     default: Some(
      Map {
       bindings: [],
       recursive: false,
       position: (8, 19),
      },
     ),
    },
    FunctionArgument {
     identifier: "mainService",
     default: Some(
      Map {
       bindings: [],
       recursive: false,
       position: (7, 17),
      },
     ),
    },
    FunctionArgument {
     identifier: "extraTimers",
     default: Some(
      Map {
       bindings: [],
       recursive: false,
       position: (6, 17),
      },
     ),
    },
    FunctionArgument {
     identifier: "webhooks",
     default: Some(
      Variable {
       identifier: "false",
       position: (5, 14),
      },
     ),
    },
    FunctionArgument {
     identifier: "iniKey",
     default: Some(
      String {
       parts: [
        Expression {
         expression: Variable {
          identifier: "srv",
          position: (4, 15),
         },
        },
        Raw {
         content: ".sr.ht",
         position: (4, 19),
        },
       ],
      },
     ),
    },
    FunctionArgument {
     identifier: "srvsrht",
     default: Some(
      String {
       parts: [
        Expression {
         expression: Variable {
          identifier: "srv",
          position: (3, 16),
         },
        },
        Raw {
         content: "srht",
         position: (3, 20),
        },
       ],
      },
     ),
    },
    FunctionArgument {
     identifier: "configIniOfService",
     default: None,
    },
   ],
   ellipsis: false,
  },
  definition: Function {
   argument: None,
   arguments: FunctionArguments {
    arguments: [
     FunctionArgument {
      identifier: "pkgs",
      default: None,
     },
     FunctionArgument {
      identifier: "lib",
      default: None,
     },
     FunctionArgument {
      identifier: "config",
      default: None,
     },
    ],
    ellipsis: true,
   },
   definition: With {
    expression: Variable {
     identifier: "lib",
     position: (14, 6),
    },
    target: LetIn {
     bindings: [
      Inherit(
       Some(
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (16, 12),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (16, 19),
           },
          ],
         },
         default: None,
        },
       ),
       [
        Raw {
         content: "postgresql",
         position: (16, 29),
        },
       ],
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "redis",
          position: (17, 3),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "config",
         position: (17, 11),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "services",
           position: (17, 18),
          },
          Raw {
           content: "redis",
           position: (17, 27),
          },
          Raw {
           content: "servers",
           position: (17, 33),
          },
          Expression {
           expression: String {
            parts: [
             Raw {
              content: "sourcehut-",
              position: (17, 42),
             },
             Expression {
              expression: Variable {
               identifier: "srvsrht",
               position: (17, 54),
              },
             },
            ],
           },
          },
         ],
        },
        default: None,
       },
      ),
      Inherit(
       Some(
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (18, 12),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "users",
            position: (18, 19),
           },
          ],
         },
         default: None,
        },
       ),
       [
        Raw {
         content: "users",
         position: (18, 26),
        },
       ],
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "cfg",
          position: (19, 3),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "config",
         position: (19, 9),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "services",
           position: (19, 16),
          },
          Raw {
           content: "sourcehut",
           position: (19, 25),
          },
         ],
        },
        default: None,
       },
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "configIni",
          position: (20, 3),
         },
        ],
       },
       FunctionApplication {
        function: Variable {
         identifier: "configIniOfService",
         position: (20, 15),
        },
        arguments: [
         Variable {
          identifier: "srv",
          position: (20, 34),
         },
        ],
       },
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "srvCfg",
          position: (21, 3),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (21, 12),
        },
        attribute_path: AttributePath {
         attributes: [
          Expression {
           expression: Variable {
            identifier: "srv",
            position: (21, 18),
           },
          },
         ],
        },
        default: None,
       },
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "baseService",
          position: (22, 3),
         },
        ],
       },
       Function {
        argument: Some(
         "serviceName",
        ),
        arguments: FunctionArguments {
         arguments: [],
         ellipsis: false,
        },
        definition: Function {
         argument: None,
         arguments: FunctionArguments {
          arguments: [
           FunctionArgument {
            identifier: "allowStripe",
            default: Some(
             Variable {
              identifier: "false",
              position: (22, 46),
             },
            ),
           },
          ],
          ellipsis: false,
         },
         definition: Function {
          argument: Some(
           "extraService",
          ),
          arguments: FunctionArguments {
           arguments: [],
           ellipsis: false,
          },
          definition: LetIn {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "runDir",
                position: (23, 5),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "/run/sourcehut/",
                position: (23, 15),
               },
               Expression {
                expression: Variable {
                 identifier: "serviceName",
                 position: (23, 32),
                },
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "rootDir",
                position: (24, 5),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "/run/sourcehut/chroots/",
                position: (24, 16),
               },
               Expression {
                expression: Variable {
                 identifier: "serviceName",
                 position: (24, 41),
                },
               },
              ],
             },
            ),
           ],
           target: FunctionApplication {
            function: Variable {
             identifier: "mkMerge",
             position: (26, 5),
            },
            arguments: [
             List {
              elements: [
               Variable {
                identifier: "extraService",
                position: (26, 15),
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "after",
                     position: (27, 5),
                    },
                   ],
                  },
                  BinaryOperation {
                   operator: Concatenation,
                   operands: [
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "network.target",
                         position: (27, 16),
                        },
                       ],
                      },
                     ],
                     position: (27, 13),
                    },
                    BinaryOperation {
                     operator: Concatenation,
                     operands: [
                      FunctionApplication {
                       function: Variable {
                        identifier: "optional",
                        position: (28, 7),
                       },
                       arguments: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (28, 16),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "postgresql",
                            position: (28, 20),
                           },
                           Raw {
                            content: "enable",
                            position: (28, 31),
                           },
                          ],
                         },
                         default: None,
                        },
                        String {
                         parts: [
                          Raw {
                           content: "postgresql.service",
                           position: (28, 39),
                          },
                         ],
                        },
                       ],
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "optional",
                        position: (29, 7),
                       },
                       arguments: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (29, 16),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "redis",
                            position: (29, 20),
                           },
                           Raw {
                            content: "enable",
                            position: (29, 26),
                           },
                          ],
                         },
                         default: None,
                        },
                        String {
                         parts: [
                          Raw {
                           content: "redis-sourcehut-",
                           position: (29, 34),
                          },
                          Expression {
                           expression: Variable {
                            identifier: "srvsrht",
                            position: (29, 52),
                           },
                          },
                          Raw {
                           content: ".service",
                           position: (29, 60),
                          },
                         ],
                        },
                       ],
                      },
                     ],
                     position: (28, 59),
                    },
                   ],
                   position: (27, 34),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "requires",
                     position: (30, 5),
                    },
                   ],
                  },
                  BinaryOperation {
                   operator: Concatenation,
                   operands: [
                    FunctionApplication {
                     function: Variable {
                      identifier: "optional",
                      position: (31, 7),
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (31, 16),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "postgresql",
                          position: (31, 20),
                         },
                         Raw {
                          content: "enable",
                          position: (31, 31),
                         },
                        ],
                       },
                       default: None,
                      },
                      String {
                       parts: [
                        Raw {
                         content: "postgresql.service",
                         position: (31, 39),
                        },
                       ],
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "optional",
                      position: (32, 7),
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (32, 16),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "redis",
                          position: (32, 20),
                         },
                         Raw {
                          content: "enable",
                          position: (32, 26),
                         },
                        ],
                       },
                       default: None,
                      },
                      String {
                       parts: [
                        Raw {
                         content: "redis-sourcehut-",
                         position: (32, 34),
                        },
                        Expression {
                         expression: Variable {
                          identifier: "srvsrht",
                          position: (32, 52),
                         },
                        },
                        Raw {
                         content: ".service",
                         position: (32, 60),
                        },
                       ],
                      },
                     ],
                    },
                   ],
                   position: (31, 59),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "path",
                     position: (33, 5),
                    },
                   ],
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (33, 14),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "gawk",
                        position: (33, 19),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (33, 12),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "environment",
                     position: (34, 5),
                    },
                    Raw {
                     content: "HOME",
                     position: (34, 17),
                    },
                   ],
                  },
                  Variable {
                   identifier: "runDir",
                   position: (34, 24),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "serviceConfig",
                     position: (35, 5),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "User",
                        position: (36, 7),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkDefault",
                       position: (36, 14),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "srvCfg",
                         position: (36, 24),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "user",
                           position: (36, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "Group",
                        position: (37, 7),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkDefault",
                       position: (37, 15),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "srvCfg",
                         position: (37, 25),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "group",
                           position: (37, 32),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RuntimeDirectory",
                        position: (38, 7),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "sourcehut/",
                          position: (39, 10),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "serviceName",
                           position: (39, 22),
                          },
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "sourcehut/",
                          position: (41, 10),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "serviceName",
                           position: (41, 22),
                          },
                         },
                         Raw {
                          content: "/subdir",
                          position: (41, 34),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "sourcehut/chroots/",
                          position: (42, 10),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "serviceName",
                           position: (42, 30),
                          },
                         },
                        ],
                       },
                      ],
                      position: (38, 26),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RuntimeDirectoryMode",
                        position: (44, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "2750",
                        position: (44, 31),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "InaccessiblePaths",
                        position: (46, 7),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "-+",
                          position: (46, 30),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "rootDir",
                           position: (46, 34),
                          },
                         },
                        ],
                       },
                      ],
                      position: (46, 27),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "UMask",
                        position: (51, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "0026",
                        position: (51, 16),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RootDirectory",
                        position: (52, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "rootDir",
                      position: (52, 23),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RootDirectoryStartOnly",
                        position: (53, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (53, 32),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "PrivateTmp",
                        position: (54, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (54, 20),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "MountAPIVFS",
                        position: (55, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (55, 21),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "WorkingDirectory",
                        position: (58, 7),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkDefault",
                       position: (58, 26),
                      },
                      arguments: [
                       BinaryOperation {
                        operator: Addition,
                        operands: [
                         String {
                          parts: [
                           Raw {
                            content: "-",
                            position: (58, 38),
                           },
                          ],
                         },
                         Variable {
                          identifier: "runDir",
                          position: (58, 41),
                         },
                        ],
                        position: (58, 40),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "BindReadOnlyPaths",
                        position: (59, 7),
                       },
                      ],
                     },
                     BinaryOperation {
                      operator: Concatenation,
                      operands: [
                       List {
                        elements: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "builtins",
                           position: (60, 9),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "storeDir",
                             position: (60, 18),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/etc",
                            position: (61, 10),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/run/booted-system",
                            position: (62, 10),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/run/current-system",
                            position: (63, 10),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/run/systemd",
                            position: (64, 10),
                           },
                          ],
                         },
                        ],
                        position: (59, 27),
                       },
                       BinaryOperation {
                        operator: Concatenation,
                        operands: [
                         FunctionApplication {
                          function: Variable {
                           identifier: "optional",
                           position: (66, 9),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (66, 18),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "postgresql",
                               position: (66, 22),
                              },
                              Raw {
                               content: "enable",
                               position: (66, 33),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "/run/postgresql",
                              position: (66, 41),
                             },
                            ],
                           },
                          ],
                         },
                         FunctionApplication {
                          function: Variable {
                           identifier: "optional",
                           position: (67, 9),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (67, 18),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "redis",
                               position: (67, 22),
                              },
                              Raw {
                               content: "enable",
                               position: (67, 28),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "/run/redis-sourcehut-",
                              position: (67, 36),
                             },
                             Expression {
                              expression: Variable {
                               identifier: "srvsrht",
                               position: (67, 59),
                              },
                             },
                            ],
                           },
                          ],
                         },
                        ],
                        position: (66, 58),
                       },
                      ],
                      position: (65, 11),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ExecStartPre",
                        position: (72, 7),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkBefore",
                       position: (72, 22),
                      },
                      arguments: [
                       List {
                        elements: [
                         BinaryOperation {
                          operator: Addition,
                          operands: [
                           String {
                            parts: [
                             Raw {
                              content: "+",
                              position: (72, 34),
                             },
                            ],
                           },
                           FunctionApplication {
                            function: PropertyAccess {
                             expression: Variable {
                              identifier: "pkgs",
                              position: (72, 37),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "writeShellScript",
                                position: (72, 42),
                               },
                              ],
                             },
                             default: None,
                            },
                            arguments: [
                             String {
                              parts: [
                               Expression {
                                expression: Variable {
                                 identifier: "serviceName",
                                 position: (72, 62),
                                },
                               },
                               Raw {
                                content: "-credentials",
                                position: (72, 74),
                               },
                              ],
                             },
                             String {
                              parts: [
                               Raw {
                                content: "set -x\n# Replace values begining with a '<' by the content of the file whose name is after.\ngawk '{ if (match($0,/^([^=]+=)<(.+)/,m)) { getline f < m[2]; print m[1] f } else print $0 }' ",
                                position: (73, 1),
                               },
                               Expression {
                                expression: Variable {
                                 identifier: "configIni",
                                 position: (75, 105),
                                },
                               },
                               Raw {
                                content: " |\n",
                                position: (75, 115),
                               },
                               Expression {
                                expression: FunctionApplication {
                                 function: Variable {
                                  identifier: "optionalString",
                                  position: (76, 11),
                                 },
                                 arguments: [
                                  UnaryOperation {
                                   operator: Not,
                                   operand: Variable {
                                    identifier: "allowStripe",
                                    position: (76, 28),
                                   },
                                   position: (76, 27),
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "gawk '!/^stripe-secret-key=/' |",
                                     position: (76, 42),
                                    },
                                   ],
                                  },
                                 ],
                                },
                               },
                               Raw {
                                content: "\ninstall -o ",
                                position: (76, 75),
                               },
                               Expression {
                                expression: PropertyAccess {
                                 expression: Variable {
                                  identifier: "srvCfg",
                                  position: (77, 22),
                                 },
                                 attribute_path: AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "user",
                                    position: (77, 29),
                                   },
                                  ],
                                 },
                                 default: None,
                                },
                               },
                               Raw {
                                content: " -g root -m 400 /dev/stdin ",
                                position: (77, 34),
                               },
                               Expression {
                                expression: Variable {
                                 identifier: "runDir",
                                 position: (77, 63),
                                },
                               },
                               Raw {
                                content: "/config.ini\n",
                                position: (77, 70),
                               },
                              ],
                             },
                            ],
                           },
                          ],
                          position: (72, 36),
                         },
                        ],
                        position: (72, 31),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "AmbientCapabilities",
                        position: (81, 7),
                       },
                      ],
                     },
                     String {
                      parts: [],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "CapabilityBoundingSet",
                        position: (82, 7),
                       },
                      ],
                     },
                     String {
                      parts: [],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "DeviceAllow",
                        position: (84, 7),
                       },
                      ],
                     },
                     String {
                      parts: [],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "LockPersonality",
                        position: (85, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (85, 25),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "MemoryDenyWriteExecute",
                        position: (86, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (86, 32),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "NoNewPrivileges",
                        position: (87, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (87, 25),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "PrivateDevices",
                        position: (88, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (88, 24),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "PrivateMounts",
                        position: (89, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (89, 23),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "PrivateNetwork",
                        position: (90, 7),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkDefault",
                       position: (90, 24),
                      },
                      arguments: [
                       Variable {
                        identifier: "false",
                        position: (90, 34),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "PrivateUsers",
                        position: (91, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (91, 22),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProcSubset",
                        position: (92, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "pid",
                        position: (92, 21),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectClock",
                        position: (93, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (93, 22),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectControlGroups",
                        position: (94, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (94, 30),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectHome",
                        position: (95, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (95, 21),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectHostname",
                        position: (96, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (96, 25),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectKernelLogs",
                        position: (97, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (97, 27),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectKernelModules",
                        position: (98, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (98, 30),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectKernelTunables",
                        position: (99, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (99, 31),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectProc",
                        position: (100, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "invisible",
                        position: (100, 22),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ProtectSystem",
                        position: (101, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "strict",
                        position: (101, 24),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RemoveIPC",
                        position: (102, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (102, 19),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RestrictAddressFamilies",
                        position: (103, 7),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "AF_UNIX",
                          position: (103, 36),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "AF_INET",
                          position: (103, 46),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "AF_INET6",
                          position: (103, 56),
                         },
                        ],
                       },
                      ],
                      position: (103, 33),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RestrictNamespaces",
                        position: (104, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (104, 28),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RestrictRealtime",
                        position: (105, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (105, 26),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "RestrictSUIDSGID",
                        position: (106, 7),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (106, 26),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "SystemCallFilter",
                        position: (109, 7),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "@system-service",
                          position: (110, 10),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@aio",
                          position: (111, 10),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@keyring",
                          position: (111, 18),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@memlock",
                          position: (111, 30),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@privileged",
                          position: (111, 42),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@resources",
                          position: (111, 57),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "~@timer",
                          position: (111, 71),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "@chown",
                          position: (112, 10),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "@setuid",
                          position: (112, 19),
                         },
                        ],
                       },
                      ],
                      position: (109, 26),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "SystemCallArchitectures",
                        position: (114, 7),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "native",
                        position: (114, 34),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (35, 21),
                  },
                 ),
                ],
                recursive: false,
                position: (26, 28),
               },
              ],
              position: (26, 13),
             },
            ],
           },
           position: (22, 69),
          },
          position: (22, 55),
         },
         position: (22, 30),
        },
        position: (22, 17),
       },
      ),
     ],
     target: Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "options",
           position: (119, 3),
          },
          Raw {
           content: "services",
           position: (119, 11),
          },
          Raw {
           content: "sourcehut",
           position: (119, 20),
          },
          Expression {
           expression: Variable {
            identifier: "srv",
            position: (119, 32),
           },
          },
         ],
        },
        BinaryOperation {
         operator: Update,
         operands: [
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enable",
                position: (120, 5),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkEnableOption",
               position: (120, 14),
              },
              arguments: [
               String {
                parts: [
                 Expression {
                  expression: Variable {
                   identifier: "srv",
                   position: (120, 32),
                  },
                 },
                 Raw {
                  content: " service",
                  position: (120, 36),
                 },
                ],
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "user",
                position: (122, 5),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (122, 12),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (123, 7),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (123, 14),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "str",
                      position: (123, 20),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (124, 7),
                    },
                   ],
                  },
                  Variable {
                   identifier: "srvsrht",
                   position: (124, 17),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (125, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "User for ",
                     position: (126, 1),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "srv",
                      position: (126, 20),
                     },
                    },
                    Raw {
                     content: ".sr.ht.\n",
                     position: (126, 24),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (122, 21),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "group",
                position: (130, 5),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (130, 13),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (131, 7),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (131, 14),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "str",
                      position: (131, 20),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (132, 7),
                    },
                   ],
                  },
                  Variable {
                   identifier: "srvsrht",
                   position: (132, 17),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (133, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Group for ",
                     position: (134, 1),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "srv",
                      position: (134, 21),
                     },
                    },
                    Raw {
                     content: ".sr.ht.\nMembership grants access to the Git/Mercurial repositories by default,\nbut not to the config.ini file (where secrets are).\n",
                     position: (134, 25),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (130, 22),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "port",
                position: (140, 5),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (140, 12),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (141, 7),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (141, 14),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "port",
                      position: (141, 20),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (142, 7),
                    },
                   ],
                  },
                  Variable {
                   identifier: "port",
                   position: (142, 17),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (143, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Port on which the \"",
                     position: (144, 1),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "srv",
                      position: (144, 30),
                     },
                    },
                    Raw {
                     content: "\" backend should listen.\n",
                     position: (144, 34),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (140, 21),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "redis",
                position: (148, 5),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "host",
                   position: (149, 7),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "mkOption",
                  position: (149, 14),
                 },
                 arguments: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "type",
                        position: (150, 9),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (150, 16),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "str",
                         position: (150, 22),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "default",
                        position: (151, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "unix:/run/redis-sourcehut-",
                        position: (151, 20),
                       },
                       Expression {
                        expression: Variable {
                         identifier: "srvsrht",
                         position: (151, 48),
                        },
                       },
                       Raw {
                        content: "/redis.sock?db=0",
                        position: (151, 56),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "example",
                        position: (152, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "redis://shared.wireguard:6379/0",
                        position: (152, 20),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "description",
                        position: (153, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "The redis host URL. This is used for caching and temporary storage, and must\nbe shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be\nshared between services. It may be shared between services, however, with no\nill effect, if this better suits your infrastructure.\n",
                        position: (154, 1),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (149, 23),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (148, 13),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "postgresql",
                position: (162, 5),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "database",
                   position: (163, 7),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "mkOption",
                  position: (163, 18),
                 },
                 arguments: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "type",
                        position: (164, 9),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (164, 16),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "str",
                         position: (164, 22),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "default",
                        position: (165, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Expression {
                        expression: Variable {
                         identifier: "srv",
                         position: (165, 22),
                        },
                       },
                       Raw {
                        content: ".sr.ht",
                        position: (165, 26),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "description",
                        position: (166, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "PostgreSQL database name for the ",
                        position: (167, 1),
                       },
                       Expression {
                        expression: Variable {
                         identifier: "srv",
                         position: (167, 46),
                        },
                       },
                       Raw {
                        content: ".sr.ht service,\nused if <xref linkend=\"opt-services.sourcehut.postgresql.enable\"/> is <literal>true</literal>.\n",
                        position: (167, 50),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (163, 27),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (162, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "gunicorn",
                position: (173, 5),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "extraArgs",
                   position: (174, 7),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "mkOption",
                  position: (174, 19),
                 },
                 arguments: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "type",
                        position: (175, 9),
                       },
                      ],
                     },
                     With {
                      expression: Variable {
                       identifier: "types",
                       position: (175, 21),
                      },
                      target: FunctionApplication {
                       function: Variable {
                        identifier: "listOf",
                        position: (175, 28),
                       },
                       arguments: [
                        Variable {
                         identifier: "str",
                         position: (175, 35),
                        },
                       ],
                      },
                      position: (175, 16),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "default",
                        position: (176, 9),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "--timeout 120",
                          position: (176, 21),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "--workers 1",
                          position: (176, 37),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "--log-level=info",
                          position: (176, 51),
                         },
                        ],
                       },
                      ],
                      position: (176, 19),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "description",
                        position: (177, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "Extra arguments passed to Gunicorn.",
                        position: (177, 24),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (174, 28),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (173, 16),
             },
            ),
           ],
           recursive: false,
           position: (119, 39),
          },
          FunctionApplication {
           function: Variable {
            identifier: "optionalAttrs",
            position: (180, 8),
           },
           arguments: [
            Variable {
             identifier: "webhooks",
             position: (180, 22),
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "webhooks",
                  position: (181, 5),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "extraArgs",
                     position: (182, 7),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "mkOption",
                    position: (182, 19),
                   },
                   arguments: [
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "type",
                          position: (183, 9),
                         },
                        ],
                       },
                       With {
                        expression: Variable {
                         identifier: "types",
                         position: (183, 21),
                        },
                        target: FunctionApplication {
                         function: Variable {
                          identifier: "listOf",
                          position: (183, 28),
                         },
                         arguments: [
                          Variable {
                           identifier: "str",
                           position: (183, 35),
                          },
                         ],
                        },
                        position: (183, 16),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "default",
                          position: (184, 9),
                         },
                        ],
                       },
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "--loglevel DEBUG",
                            position: (184, 21),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "--pool eventlet",
                            position: (184, 40),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "--without-heartbeat",
                            position: (184, 58),
                           },
                          ],
                         },
                        ],
                        position: (184, 19),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "description",
                          position: (185, 9),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "Extra arguments passed to the Celery responsible for webhooks.",
                          position: (185, 24),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (182, 28),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "celeryConfig",
                     position: (187, 7),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "mkOption",
                    position: (187, 22),
                   },
                   arguments: [
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "type",
                          position: (188, 9),
                         },
                        ],
                       },
                       PropertyAccess {
                        expression: Variable {
                         identifier: "types",
                         position: (188, 16),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "lines",
                           position: (188, 22),
                          },
                         ],
                        },
                        default: None,
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "default",
                          position: (189, 9),
                         },
                        ],
                       },
                       String {
                        parts: [],
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "description",
                          position: (190, 9),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "Content of the <literal>celeryconfig.py</literal> used by the Celery responsible for webhooks.",
                          position: (190, 24),
                         },
                        ],
                       },
                      ),
                     ],
                     recursive: false,
                     position: (187, 31),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (181, 16),
               },
              ),
             ],
             recursive: false,
             position: (180, 31),
            },
           ],
          },
         ],
         position: (180, 5),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "config",
           position: (195, 3),
          },
         ],
        },
        FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "lib",
           position: (195, 12),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "mkIf",
             position: (195, 16),
            },
           ],
          },
          default: None,
         },
         arguments: [
          BinaryOperation {
           operator: LogicalAnd,
           operands: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (195, 22),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "enable",
                position: (195, 26),
               },
              ],
             },
             default: None,
            },
            PropertyAccess {
             expression: Variable {
              identifier: "srvCfg",
              position: (195, 36),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "enable",
                position: (195, 43),
               },
              ],
             },
             default: None,
            },
           ],
           position: (195, 33),
          },
          FunctionApplication {
           function: Variable {
            identifier: "mkMerge",
            position: (195, 52),
           },
           arguments: [
            List {
             elements: [
              Variable {
               identifier: "extraConfig",
               position: (195, 62),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "users",
                    position: (196, 5),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "users",
                       position: (197, 7),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Expression {
                          expression: String {
                           parts: [
                            Expression {
                             expression: PropertyAccess {
                              expression: Variable {
                               identifier: "srvCfg",
                               position: (198, 12),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "user",
                                 position: (198, 19),
                                },
                               ],
                              },
                              default: None,
                             },
                            },
                           ],
                          },
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "isSystemUser",
                             position: (199, 11),
                            },
                           ],
                          },
                          Variable {
                           identifier: "true",
                           position: (199, 26),
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "group",
                             position: (200, 11),
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkDefault",
                            position: (200, 19),
                           },
                           arguments: [
                            PropertyAccess {
                             expression: Variable {
                              identifier: "srvCfg",
                              position: (200, 29),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "group",
                                position: (200, 36),
                               },
                              ],
                             },
                             default: None,
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "description",
                             position: (201, 11),
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkDefault",
                            position: (201, 25),
                           },
                           arguments: [
                            String {
                             parts: [
                              Raw {
                               content: "sourcehut user for ",
                               position: (201, 36),
                              },
                              Expression {
                               expression: Variable {
                                identifier: "srv",
                                position: (201, 57),
                               },
                              },
                              Raw {
                               content: ".sr.ht",
                               position: (201, 61),
                              },
                             ],
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (198, 28),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (197, 15),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "groups",
                       position: (204, 7),
                      },
                     ],
                    },
                    BinaryOperation {
                     operator: Update,
                     operands: [
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Expression {
                            expression: String {
                             parts: [
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "srvCfg",
                                 position: (205, 12),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "group",
                                   position: (205, 19),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                             ],
                            },
                           },
                          ],
                         },
                         Map {
                          bindings: [],
                          recursive: false,
                          position: (205, 29),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (204, 16),
                      },
                      BinaryOperation {
                       operator: Update,
                       operands: [
                        FunctionApplication {
                         function: Variable {
                          identifier: "optionalAttrs",
                          position: (206, 12),
                         },
                         arguments: [
                          BinaryOperation {
                           operator: LogicalAnd,
                           operands: [
                            PropertyAccess {
                             expression: Variable {
                              identifier: "cfg",
                              position: (206, 27),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "postgresql",
                                position: (206, 31),
                               },
                               Raw {
                                content: "enable",
                                position: (206, 42),
                               },
                              ],
                             },
                             default: None,
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "hasSuffix",
                              position: (207, 12),
                             },
                             arguments: [
                              String {
                               parts: [
                                Raw {
                                 content: "0",
                                 position: (207, 23),
                                },
                               ],
                              },
                              PropertyAccess {
                               expression: Variable {
                                identifier: "postgresql",
                                position: (207, 27),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "settings",
                                  position: (207, 38),
                                 },
                                 Raw {
                                  content: "unix_socket_permissions",
                                  position: (207, 47),
                                 },
                                ],
                               },
                               default: Some(
                                String {
                                 parts: [],
                                },
                               ),
                              },
                             ],
                            },
                           ],
                           position: (207, 9),
                          },
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Expression {
                                expression: String {
                                 parts: [
                                  Raw {
                                   content: "postgres",
                                   position: (208, 10),
                                  },
                                 ],
                                },
                               },
                               Raw {
                                content: "members",
                                position: (208, 20),
                               },
                              ],
                             },
                             List {
                              elements: [
                               PropertyAccess {
                                expression: Variable {
                                 identifier: "srvCfg",
                                 position: (208, 32),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "user",
                                   position: (208, 39),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              ],
                              position: (208, 30),
                             },
                            ),
                           ],
                           recursive: false,
                           position: (207, 79),
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "optionalAttrs",
                          position: (209, 12),
                         },
                         arguments: [
                          BinaryOperation {
                           operator: LogicalAnd,
                           operands: [
                            PropertyAccess {
                             expression: Variable {
                              identifier: "cfg",
                              position: (209, 27),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "redis",
                                position: (209, 31),
                               },
                               Raw {
                                content: "enable",
                                position: (209, 37),
                               },
                              ],
                             },
                             default: None,
                            },
                            FunctionApplication {
                             function: Variable {
                              identifier: "hasSuffix",
                              position: (210, 12),
                             },
                             arguments: [
                              String {
                               parts: [
                                Raw {
                                 content: "0",
                                 position: (210, 23),
                                },
                               ],
                              },
                              PropertyAccess {
                               expression: Variable {
                                identifier: "redis",
                                position: (210, 27),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "settings",
                                  position: (210, 33),
                                 },
                                 Raw {
                                  content: "unixsocketperm",
                                  position: (210, 42),
                                 },
                                ],
                               },
                               default: Some(
                                String {
                                 parts: [],
                                },
                               ),
                              },
                             ],
                            },
                           ],
                           position: (210, 9),
                          },
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Expression {
                                expression: String {
                                 parts: [
                                  Raw {
                                   content: "redis-sourcehut-",
                                   position: (211, 10),
                                  },
                                  Expression {
                                   expression: Variable {
                                    identifier: "srvsrht",
                                    position: (211, 28),
                                   },
                                  },
                                 ],
                                },
                               },
                               Raw {
                                content: "members",
                                position: (211, 38),
                               },
                              ],
                             },
                             List {
                              elements: [
                               PropertyAccess {
                                expression: Variable {
                                 identifier: "srvCfg",
                                 position: (211, 50),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "user",
                                   position: (211, 57),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              ],
                              position: (211, 48),
                             },
                            ),
                           ],
                           recursive: false,
                           position: (210, 65),
                          },
                         ],
                        },
                       ],
                       position: (209, 9),
                      },
                     ],
                     position: (206, 9),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (196, 13),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (215, 5),
                   },
                   Raw {
                    content: "nginx",
                    position: (215, 14),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (215, 22),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (215, 27),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "nginx",
                       position: (215, 31),
                      },
                      Raw {
                       content: "enable",
                       position: (215, 37),
                      },
                     ],
                    },
                    default: None,
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "virtualHosts",
                         position: (216, 7),
                        },
                        Expression {
                         expression: String {
                          parts: [
                           Expression {
                            expression: Variable {
                             identifier: "srv",
                             position: (216, 23),
                            },
                           },
                           Raw {
                            content: ".",
                            position: (216, 27),
                           },
                           Expression {
                            expression: PropertyAccess {
                             expression: Variable {
                              identifier: "cfg",
                              position: (216, 30),
                             },
                             attribute_path: AttributePath {
                              attributes: [
                               Raw {
                                content: "settings",
                                position: (216, 34),
                               },
                               Expression {
                                expression: String {
                                 parts: [
                                  Raw {
                                   content: "sr.ht",
                                   position: (216, 44),
                                  },
                                 ],
                                },
                               },
                               Raw {
                                content: "global-domain",
                                position: (216, 51),
                               },
                              ],
                             },
                             default: None,
                            },
                           },
                          ],
                         },
                        },
                       ],
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "mkMerge",
                        position: (216, 69),
                       },
                       arguments: [
                        List {
                         elements: [
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "forceSSL",
                                position: (217, 9),
                               },
                              ],
                             },
                             FunctionApplication {
                              function: Variable {
                               identifier: "mkDefault",
                               position: (217, 20),
                              },
                              arguments: [
                               Variable {
                                identifier: "true",
                                position: (217, 30),
                               },
                              ],
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "locations",
                                position: (218, 9),
                               },
                               Expression {
                                expression: String {
                                 parts: [
                                  Raw {
                                   content: "/",
                                   position: (218, 20),
                                  },
                                 ],
                                },
                               },
                               Raw {
                                content: "proxyPass",
                                position: (218, 23),
                               },
                              ],
                             },
                             String {
                              parts: [
                               Raw {
                                content: "http://",
                                position: (218, 36),
                               },
                               Expression {
                                expression: PropertyAccess {
                                 expression: Variable {
                                  identifier: "cfg",
                                  position: (218, 45),
                                 },
                                 attribute_path: AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "listenAddress",
                                    position: (218, 49),
                                   },
                                  ],
                                 },
                                 default: None,
                                },
                               },
                               Raw {
                                content: ":",
                                position: (218, 63),
                               },
                               Expression {
                                expression: FunctionApplication {
                                 function: Variable {
                                  identifier: "toString",
                                  position: (218, 66),
                                 },
                                 arguments: [
                                  PropertyAccess {
                                   expression: Variable {
                                    identifier: "srvCfg",
                                    position: (218, 75),
                                   },
                                   attribute_path: AttributePath {
                                    attributes: [
                                     Raw {
                                      content: "port",
                                      position: (218, 82),
                                     },
                                    ],
                                   },
                                   default: None,
                                  },
                                 ],
                                },
                               },
                              ],
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "locations",
                                position: (219, 9),
                               },
                               Expression {
                                expression: String {
                                 parts: [
                                  Raw {
                                   content: "/static",
                                   position: (219, 20),
                                  },
                                 ],
                                },
                               },
                              ],
                             },
                             Map {
                              bindings: [
                               KeyValue(
                                AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "root",
                                   position: (220, 11),
                                  },
                                 ],
                                },
                                String {
                                 parts: [
                                  Expression {
                                   expression: PropertyAccess {
                                    expression: Variable {
                                     identifier: "pkgs",
                                     position: (220, 21),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "sourcehut",
                                       position: (220, 26),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (220, 38),
                                       },
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                  },
                                  Raw {
                                   content: "/",
                                   position: (220, 47),
                                  },
                                  Expression {
                                   expression: PropertyAccess {
                                    expression: Variable {
                                     identifier: "pkgs",
                                     position: (220, 50),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "sourcehut",
                                       position: (220, 55),
                                      },
                                      Raw {
                                       content: "python",
                                       position: (220, 65),
                                      },
                                      Raw {
                                       content: "sitePackages",
                                       position: (220, 72),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                  },
                                  Raw {
                                   content: "/",
                                   position: (220, 85),
                                  },
                                  Expression {
                                   expression: Variable {
                                    identifier: "srvsrht",
                                    position: (220, 88),
                                   },
                                  },
                                 ],
                                },
                               ),
                               KeyValue(
                                AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "extraConfig",
                                   position: (221, 11),
                                  },
                                 ],
                                },
                                FunctionApplication {
                                 function: Variable {
                                  identifier: "mkDefault",
                                  position: (221, 25),
                                 },
                                 arguments: [
                                  String {
                                   parts: [
                                    Raw {
                                     content: "expires 30d;\n",
                                     position: (222, 1),
                                    },
                                   ],
                                  },
                                 ],
                                },
                               ),
                              ],
                              recursive: false,
                              position: (219, 31),
                             },
                            ),
                           ],
                           recursive: false,
                           position: (216, 79),
                          },
                          PropertyAccess {
                           expression: Variable {
                            identifier: "cfg",
                            position: (225, 9),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "nginx",
                              position: (225, 13),
                             },
                             Raw {
                              content: "virtualHost",
                              position: (225, 19),
                             },
                            ],
                           },
                           default: None,
                          },
                         ],
                         position: (216, 77),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (215, 44),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (228, 5),
                   },
                   Raw {
                    content: "postgresql",
                    position: (228, 14),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (228, 27),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (228, 32),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "postgresql",
                       position: (228, 36),
                      },
                      Raw {
                       content: "enable",
                       position: (228, 47),
                      },
                     ],
                    },
                    default: None,
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "authentication",
                         position: (229, 7),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "local ",
                         position: (230, 1),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "srvCfg",
                           position: (230, 17),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "postgresql",
                             position: (230, 24),
                            },
                            Raw {
                             content: "database",
                             position: (230, 35),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: " ",
                         position: (230, 44),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "srvCfg",
                           position: (230, 47),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "user",
                             position: (230, 54),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: " trust\n",
                         position: (230, 59),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "ensureDatabases",
                         position: (232, 7),
                        },
                       ],
                      },
                      List {
                       elements: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "srvCfg",
                          position: (232, 27),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "postgresql",
                            position: (232, 34),
                           },
                           Raw {
                            content: "database",
                            position: (232, 45),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                       position: (232, 25),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "ensureUsers",
                         position: (233, 7),
                        },
                       ],
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "map",
                        position: (233, 21),
                       },
                       arguments: [
                        Function {
                         argument: Some(
                          "name",
                         ),
                         arguments: FunctionArguments {
                          arguments: [],
                          ellipsis: false,
                         },
                         definition: Map {
                          bindings: [
                           Inherit(
                            None,
                            [
                             Raw {
                              content: "name",
                              position: (234, 19),
                             },
                            ],
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "ensurePermissions",
                               position: (235, 11),
                              },
                             ],
                            },
                            Map {
                             bindings: [
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Expression {
                                  expression: String {
                                   parts: [
                                    Raw {
                                     content: "DATABASE \"",
                                     position: (235, 34),
                                    },
                                    Expression {
                                     expression: PropertyAccess {
                                      expression: Variable {
                                       identifier: "srvCfg",
                                       position: (235, 47),
                                      },
                                      attribute_path: AttributePath {
                                       attributes: [
                                        Raw {
                                         content: "postgresql",
                                         position: (235, 54),
                                        },
                                        Raw {
                                         content: "database",
                                         position: (235, 65),
                                        },
                                       ],
                                      },
                                      default: None,
                                     },
                                    },
                                    Raw {
                                     content: "\"",
                                     position: (235, 74),
                                    },
                                   ],
                                  },
                                 },
                                ],
                               },
                               String {
                                parts: [
                                 Raw {
                                  content: "ALL PRIVILEGES",
                                  position: (235, 81),
                                 },
                                ],
                               },
                              ),
                             ],
                             recursive: false,
                             position: (235, 31),
                            },
                           ),
                          ],
                          recursive: false,
                          position: (233, 32),
                         },
                         position: (233, 26),
                        },
                        List {
                         elements: [
                          PropertyAccess {
                           expression: Variable {
                            identifier: "srvCfg",
                            position: (236, 13),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "user",
                              position: (236, 20),
                             },
                            ],
                           },
                           default: None,
                          },
                         ],
                         position: (236, 12),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (228, 54),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (239, 5),
                   },
                   Raw {
                    content: "sourcehut",
                    position: (239, 14),
                   },
                   Raw {
                    content: "services",
                    position: (239, 24),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (239, 35),
                  },
                  arguments: [
                   FunctionApplication {
                    function: Variable {
                     identifier: "filter",
                     position: (239, 46),
                    },
                    arguments: [
                     Function {
                      argument: Some(
                       "s",
                      ),
                      arguments: FunctionArguments {
                       arguments: [],
                       ellipsis: false,
                      },
                      definition: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (239, 57),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Expression {
                          expression: Variable {
                           identifier: "s",
                           position: (239, 63),
                          },
                         },
                         Raw {
                          content: "enable",
                          position: (239, 66),
                         },
                        ],
                       },
                       default: None,
                      },
                      position: (239, 54),
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "builds",
                          position: (240, 10),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "dispatch",
                          position: (240, 19),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "git",
                          position: (240, 30),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "hg",
                          position: (240, 36),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "hub",
                          position: (240, 41),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "lists",
                          position: (240, 47),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "man",
                          position: (240, 55),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "meta",
                          position: (240, 61),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "pages",
                          position: (240, 68),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "paste",
                          position: (240, 76),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "todo",
                          position: (240, 84),
                         },
                        ],
                       },
                      ],
                      position: (240, 7),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (242, 5),
                   },
                   Raw {
                    content: "sourcehut",
                    position: (242, 14),
                   },
                   Raw {
                    content: "settings",
                    position: (242, 24),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkMerge",
                   position: (242, 35),
                  },
                  arguments: [
                   List {
                    elements: [
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Expression {
                           expression: String {
                            parts: [
                             Expression {
                              expression: Variable {
                               identifier: "srv",
                               position: (244, 12),
                              },
                             },
                             Raw {
                              content: ".sr.ht",
                              position: (244, 16),
                             },
                            ],
                           },
                          },
                          Raw {
                           content: "origin",
                           position: (244, 24),
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "mkDefault",
                          position: (244, 33),
                         },
                         arguments: [
                          String {
                           parts: [
                            Raw {
                             content: "https://",
                             position: (244, 44),
                            },
                            Expression {
                             expression: Variable {
                              identifier: "srv",
                              position: (244, 54),
                             },
                            },
                            Raw {
                             content: ".",
                             position: (244, 58),
                            },
                            Expression {
                             expression: PropertyAccess {
                              expression: Variable {
                               identifier: "cfg",
                               position: (244, 61),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "settings",
                                 position: (244, 65),
                                },
                                Expression {
                                 expression: String {
                                  parts: [
                                   Raw {
                                    content: "sr.ht",
                                    position: (244, 75),
                                   },
                                  ],
                                 },
                                },
                                Raw {
                                 content: "global-domain",
                                 position: (244, 82),
                                },
                               ],
                              },
                              default: None,
                             },
                            },
                           ],
                          },
                         ],
                        },
                       ),
                      ],
                      recursive: false,
                      position: (243, 7),
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkIf",
                       position: (247, 8),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (247, 13),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "postgresql",
                           position: (247, 17),
                          },
                          Raw {
                           content: "enable",
                           position: (247, 28),
                          },
                         ],
                        },
                        default: None,
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Expression {
                             expression: String {
                              parts: [
                               Expression {
                                expression: Variable {
                                 identifier: "srv",
                                 position: (248, 12),
                                },
                               },
                               Raw {
                                content: ".sr.ht",
                                position: (248, 16),
                               },
                              ],
                             },
                            },
                            Raw {
                             content: "connection-string",
                             position: (248, 24),
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkDefault",
                            position: (248, 44),
                           },
                           arguments: [
                            String {
                             parts: [
                              Raw {
                               content: "postgresql:///",
                               position: (248, 55),
                              },
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "srvCfg",
                                 position: (248, 71),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "postgresql",
                                   position: (248, 78),
                                  },
                                  Raw {
                                   content: "database",
                                   position: (248, 89),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "?user=",
                               position: (248, 98),
                              },
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "srvCfg",
                                 position: (248, 106),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "user",
                                   position: (248, 113),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "&host=/run/postgresql",
                               position: (248, 118),
                              },
                             ],
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (247, 35),
                       },
                      ],
                     },
                    ],
                    position: (242, 43),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (252, 5),
                   },
                   Raw {
                    content: "redis",
                    position: (252, 14),
                   },
                   Raw {
                    content: "servers",
                    position: (252, 20),
                   },
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "sourcehut-",
                       position: (252, 29),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "srvsrht",
                        position: (252, 41),
                       },
                      },
                     ],
                    },
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (252, 53),
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (252, 58),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "redis",
                       position: (252, 62),
                      },
                      Raw {
                       content: "enable",
                       position: (252, 68),
                      },
                     ],
                    },
                    default: None,
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "enable",
                         position: (253, 7),
                        },
                       ],
                      },
                      Variable {
                       identifier: "true",
                       position: (253, 16),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "databases",
                         position: (254, 7),
                        },
                       ],
                      },
                      Int {
                       value: 3,
                       position: (254, 19),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "syslog",
                         position: (255, 7),
                        },
                       ],
                      },
                      Variable {
                       identifier: "true",
                       position: (255, 16),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "save",
                         position: (257, 7),
                        },
                       ],
                      },
                      FunctionApplication {
                       function: Variable {
                        identifier: "mkDefault",
                        position: (257, 14),
                       },
                       arguments: [
                        List {
                         elements: [
                          List {
                           elements: [
                            Int {
                             value: 1800,
                             position: (257, 27),
                            },
                            Int {
                             value: 10,
                             position: (257, 32),
                            },
                           ],
                           position: (257, 26),
                          },
                          List {
                           elements: [
                            Int {
                             value: 300,
                             position: (257, 37),
                            },
                            Int {
                             value: 100,
                             position: (257, 41),
                            },
                           ],
                           position: (257, 36),
                          },
                         ],
                         position: (257, 24),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "settings",
                         position: (258, 7),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "maxmemory",
                            position: (260, 9),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "128MB",
                            position: (260, 22),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "maxmemory-policy",
                            position: (261, 9),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "volatile-ttl",
                            position: (261, 29),
                           },
                          ],
                         },
                        ),
                       ],
                       recursive: false,
                       position: (258, 18),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (252, 75),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "systemd",
                    position: (265, 5),
                   },
                   Raw {
                    content: "services",
                    position: (265, 13),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkMerge",
                   position: (265, 24),
                  },
                  arguments: [
                   List {
                    elements: [
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Expression {
                           expression: String {
                            parts: [
                             Expression {
                              expression: Variable {
                               identifier: "srvsrht",
                               position: (267, 12),
                              },
                             },
                            ],
                           },
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "baseService",
                          position: (267, 24),
                         },
                         arguments: [
                          Variable {
                           identifier: "srvsrht",
                           position: (267, 36),
                          },
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "allowStripe",
                                position: (267, 46),
                               },
                              ],
                             },
                             BinaryOperation {
                              operator: EqualTo,
                              operands: [
                               Variable {
                                identifier: "srv",
                                position: (267, 60),
                               },
                               String {
                                parts: [
                                 Raw {
                                  content: "meta",
                                  position: (267, 68),
                                 },
                                ],
                               },
                              ],
                              position: (267, 64),
                             },
                            ),
                           ],
                           recursive: false,
                           position: (267, 44),
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkMerge",
                            position: (267, 78),
                           },
                           arguments: [
                            List {
                             elements: [
                              Map {
                               bindings: [
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "description",
                                    position: (269, 11),
                                   },
                                  ],
                                 },
                                 String {
                                  parts: [
                                   Raw {
                                    content: "sourcehut ",
                                    position: (269, 26),
                                   },
                                   Expression {
                                    expression: Variable {
                                     identifier: "srv",
                                     position: (269, 38),
                                    },
                                   },
                                   Raw {
                                    content: ".sr.ht website service",
                                    position: (269, 42),
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "before",
                                    position: (270, 11),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "optional",
                                   position: (270, 20),
                                  },
                                  arguments: [
                                   PropertyAccess {
                                    expression: Variable {
                                     identifier: "cfg",
                                     position: (270, 29),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "nginx",
                                       position: (270, 33),
                                      },
                                      Raw {
                                       content: "enable",
                                       position: (270, 39),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                   String {
                                    parts: [
                                     Raw {
                                      content: "nginx.service",
                                      position: (270, 47),
                                     },
                                    ],
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "wants",
                                    position: (271, 11),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "optional",
                                   position: (271, 19),
                                  },
                                  arguments: [
                                   PropertyAccess {
                                    expression: Variable {
                                     identifier: "cfg",
                                     position: (271, 28),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "nginx",
                                       position: (271, 32),
                                      },
                                      Raw {
                                       content: "enable",
                                       position: (271, 38),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                   String {
                                    parts: [
                                     Raw {
                                      content: "nginx.service",
                                      position: (271, 46),
                                     },
                                    ],
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "wantedBy",
                                    position: (272, 11),
                                   },
                                  ],
                                 },
                                 List {
                                  elements: [
                                   String {
                                    parts: [
                                     Raw {
                                      content: "multi-user.target",
                                      position: (272, 25),
                                     },
                                    ],
                                   },
                                  ],
                                  position: (272, 22),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "path",
                                    position: (273, 11),
                                   },
                                  ],
                                 },
                                 FunctionApplication {
                                  function: Variable {
                                   identifier: "optional",
                                   position: (273, 18),
                                  },
                                  arguments: [
                                   PropertyAccess {
                                    expression: Variable {
                                     identifier: "cfg",
                                     position: (273, 27),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "postgresql",
                                       position: (273, 31),
                                      },
                                      Raw {
                                       content: "enable",
                                       position: (273, 42),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                   PropertyAccess {
                                    expression: Variable {
                                     identifier: "postgresql",
                                     position: (273, 49),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "package",
                                       position: (273, 60),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                  ],
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "restartTriggers",
                                    position: (275, 11),
                                   },
                                  ],
                                 },
                                 List {
                                  elements: [
                                   Variable {
                                    identifier: "configIni",
                                    position: (275, 31),
                                   },
                                  ],
                                  position: (275, 29),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "serviceConfig",
                                    position: (276, 11),
                                   },
                                  ],
                                 },
                                 Map {
                                  bindings: [
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "Type",
                                       position: (277, 13),
                                      },
                                     ],
                                    },
                                    String {
                                     parts: [
                                      Raw {
                                       content: "simple",
                                       position: (277, 21),
                                      },
                                     ],
                                    },
                                   ),
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "Restart",
                                       position: (278, 13),
                                      },
                                     ],
                                    },
                                    FunctionApplication {
                                     function: Variable {
                                      identifier: "mkDefault",
                                      position: (278, 23),
                                     },
                                     arguments: [
                                      String {
                                       parts: [
                                        Raw {
                                         content: "always",
                                         position: (278, 34),
                                        },
                                       ],
                                      },
                                     ],
                                    },
                                   ),
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "StateDirectory",
                                       position: (280, 13),
                                      },
                                     ],
                                    },
                                    List {
                                     elements: [
                                      String {
                                       parts: [
                                        Raw {
                                         content: "sourcehut/",
                                         position: (280, 33),
                                        },
                                        Expression {
                                         expression: Variable {
                                          identifier: "srvsrht",
                                          position: (280, 45),
                                         },
                                        },
                                       ],
                                      },
                                     ],
                                     position: (280, 30),
                                    },
                                   ),
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "StateDirectoryMode",
                                       position: (281, 13),
                                      },
                                     ],
                                    },
                                    String {
                                     parts: [
                                      Raw {
                                       content: "2750",
                                       position: (281, 35),
                                      },
                                     ],
                                    },
                                   ),
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "ExecStart",
                                       position: (282, 13),
                                      },
                                     ],
                                    },
                                    BinaryOperation {
                                     operator: Addition,
                                     operands: [
                                      String {
                                       parts: [
                                        Expression {
                                         expression: PropertyAccess {
                                          expression: Variable {
                                           identifier: "cfg",
                                           position: (282, 28),
                                          },
                                          attribute_path: AttributePath {
                                           attributes: [
                                            Raw {
                                             content: "python",
                                             position: (282, 32),
                                            },
                                           ],
                                          },
                                          default: None,
                                         },
                                        },
                                        Raw {
                                         content: "/bin/gunicorn ",
                                         position: (282, 39),
                                        },
                                        Expression {
                                         expression: Variable {
                                          identifier: "srvsrht",
                                          position: (282, 55),
                                         },
                                        },
                                        Raw {
                                         content: ".app:app --name ",
                                         position: (282, 63),
                                        },
                                        Expression {
                                         expression: Variable {
                                          identifier: "srvsrht",
                                          position: (282, 81),
                                         },
                                        },
                                        Raw {
                                         content: " --bind ",
                                         position: (282, 89),
                                        },
                                        Expression {
                                         expression: PropertyAccess {
                                          expression: Variable {
                                           identifier: "cfg",
                                           position: (282, 99),
                                          },
                                          attribute_path: AttributePath {
                                           attributes: [
                                            Raw {
                                             content: "listenAddress",
                                             position: (282, 103),
                                            },
                                           ],
                                          },
                                          default: None,
                                         },
                                        },
                                        Raw {
                                         content: ":",
                                         position: (282, 117),
                                        },
                                        Expression {
                                         expression: FunctionApplication {
                                          function: Variable {
                                           identifier: "toString",
                                           position: (282, 120),
                                          },
                                          arguments: [
                                           PropertyAccess {
                                            expression: Variable {
                                             identifier: "srvCfg",
                                             position: (282, 129),
                                            },
                                            attribute_path: AttributePath {
                                             attributes: [
                                              Raw {
                                               content: "port",
                                               position: (282, 136),
                                              },
                                             ],
                                            },
                                            default: None,
                                           },
                                          ],
                                         },
                                        },
                                        Raw {
                                         content: " ",
                                         position: (282, 141),
                                        },
                                       ],
                                      },
                                      FunctionApplication {
                                       function: Variable {
                                        identifier: "concatStringsSep",
                                        position: (282, 146),
                                       },
                                       arguments: [
                                        String {
                                         parts: [
                                          Raw {
                                           content: " ",
                                           position: (282, 164),
                                          },
                                         ],
                                        },
                                        PropertyAccess {
                                         expression: Variable {
                                          identifier: "srvCfg",
                                          position: (282, 167),
                                         },
                                         attribute_path: AttributePath {
                                          attributes: [
                                           Raw {
                                            content: "gunicorn",
                                            position: (282, 174),
                                           },
                                           Raw {
                                            content: "extraArgs",
                                            position: (282, 183),
                                           },
                                          ],
                                         },
                                         default: None,
                                        },
                                       ],
                                      },
                                     ],
                                     position: (282, 144),
                                    },
                                   ),
                                  ],
                                  recursive: false,
                                  position: (276, 27),
                                 },
                                ),
                                KeyValue(
                                 AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "preStart",
                                    position: (284, 11),
                                   },
                                  ],
                                 },
                                 LetIn {
                                  bindings: [
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "version",
                                       position: (285, 13),
                                      },
                                     ],
                                    },
                                    PropertyAccess {
                                     expression: Variable {
                                      identifier: "pkgs",
                                      position: (285, 23),
                                     },
                                     attribute_path: AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "sourcehut",
                                        position: (285, 28),
                                       },
                                       Expression {
                                        expression: Variable {
                                         identifier: "srvsrht",
                                         position: (285, 40),
                                        },
                                       },
                                       Raw {
                                        content: "version",
                                        position: (285, 49),
                                       },
                                      ],
                                     },
                                     default: None,
                                    },
                                   ),
                                   KeyValue(
                                    AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "stateDir",
                                       position: (286, 13),
                                      },
                                     ],
                                    },
                                    String {
                                     parts: [
                                      Raw {
                                       content: "/var/lib/sourcehut/",
                                       position: (286, 25),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (286, 46),
                                       },
                                      },
                                     ],
                                    },
                                   ),
                                  ],
                                  target: FunctionApplication {
                                   function: Variable {
                                    identifier: "mkBefore",
                                    position: (287, 16),
                                   },
                                   arguments: [
                                    String {
                                     parts: [
                                      Raw {
                                       content: "set -x\n# Use the /run/sourcehut/",
                                       position: (288, 1),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (289, 40),
                                       },
                                      },
                                      Raw {
                                       content: "/config.ini\n# installed by a previous ExecStartPre= in baseService\ncd /run/sourcehut/",
                                       position: (289, 48),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (291, 33),
                                       },
                                      },
                                      Raw {
                                       content: "\n\nif test ! -e ",
                                       position: (291, 41),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "stateDir",
                                        position: (293, 28),
                                       },
                                      },
                                      Raw {
                                       content: "/db; then\n  # Setup the initial database.\n  # Note that it stamps the alembic head afterward\n  ",
                                       position: (293, 37),
                                      },
                                      Expression {
                                       expression: PropertyAccess {
                                        expression: Variable {
                                         identifier: "cfg",
                                         position: (296, 17),
                                        },
                                        attribute_path: AttributePath {
                                         attributes: [
                                          Raw {
                                           content: "python",
                                           position: (296, 21),
                                          },
                                         ],
                                        },
                                        default: None,
                                       },
                                      },
                                      Raw {
                                       content: "/bin/",
                                       position: (296, 28),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (296, 35),
                                       },
                                      },
                                      Raw {
                                       content: "-initdb\n  echo ",
                                       position: (296, 43),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "version",
                                        position: (297, 22),
                                       },
                                      },
                                      Raw {
                                       content: " >",
                                       position: (297, 30),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "stateDir",
                                        position: (297, 34),
                                       },
                                      },
                                      Raw {
                                       content: "/db\nfi\n\n",
                                       position: (297, 43),
                                      },
                                      Expression {
                                       expression: FunctionApplication {
                                        function: Variable {
                                         identifier: "optionalString",
                                         position: (300, 15),
                                        },
                                        arguments: [
                                         PropertyAccess {
                                          expression: Variable {
                                           identifier: "cfg",
                                           position: (300, 30),
                                          },
                                          attribute_path: AttributePath {
                                           attributes: [
                                            Raw {
                                             content: "settings",
                                             position: (300, 34),
                                            },
                                            Expression {
                                             expression: Variable {
                                              identifier: "iniKey",
                                              position: (300, 45),
                                             },
                                            },
                                            Raw {
                                             content: "migrate-on-upgrade",
                                             position: (300, 53),
                                            },
                                           ],
                                          },
                                          default: None,
                                         },
                                         String {
                                          parts: [
                                           Raw {
                                            content: "if [ \"$(cat ",
                                            position: (301, 1),
                                           },
                                           Expression {
                                            expression: Variable {
                                             identifier: "stateDir",
                                             position: (301, 29),
                                            },
                                           },
                                           Raw {
                                            content: "/db)\" != \"",
                                            position: (301, 38),
                                           },
                                           Expression {
                                            expression: Variable {
                                             identifier: "version",
                                             position: (301, 50),
                                            },
                                           },
                                           Raw {
                                            content: "\" ]; then\n  # Manage schema migrations using alembic\n  ",
                                            position: (301, 58),
                                           },
                                           Expression {
                                            expression: PropertyAccess {
                                             expression: Variable {
                                              identifier: "cfg",
                                              position: (303, 19),
                                             },
                                             attribute_path: AttributePath {
                                              attributes: [
                                               Raw {
                                                content: "python",
                                                position: (303, 23),
                                               },
                                              ],
                                             },
                                             default: None,
                                            },
                                           },
                                           Raw {
                                            content: "/bin/",
                                            position: (303, 30),
                                           },
                                           Expression {
                                            expression: Variable {
                                             identifier: "srvsrht",
                                             position: (303, 37),
                                            },
                                           },
                                           Raw {
                                            content: "-migrate -a upgrade head\n  echo ",
                                            position: (303, 45),
                                           },
                                           Expression {
                                            expression: Variable {
                                             identifier: "version",
                                             position: (304, 24),
                                            },
                                           },
                                           Raw {
                                            content: " >",
                                            position: (304, 32),
                                           },
                                           Expression {
                                            expression: Variable {
                                             identifier: "stateDir",
                                             position: (304, 36),
                                            },
                                           },
                                           Raw {
                                            content: "/db\nfi\n",
                                            position: (304, 45),
                                           },
                                          ],
                                         },
                                        ],
                                       },
                                      },
                                      Raw {
                                       content: "\n\n# Update copy of each users' profile to the latest\n# See https://lists.sr.ht/~sircmpwn/sr.ht-admins/<20190302181207.GA13778%40cirno.my.domain>\nif test ! -e ",
                                       position: (306, 16),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "stateDir",
                                        position: (310, 28),
                                       },
                                      },
                                      Raw {
                                       content: "/webhook; then\n  # Update ",
                                       position: (310, 37),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "iniKey",
                                        position: (311, 26),
                                       },
                                      },
                                      Raw {
                                       content: "'s users' profile copy to the latest\n  ",
                                       position: (311, 33),
                                      },
                                      Expression {
                                       expression: PropertyAccess {
                                        expression: Variable {
                                         identifier: "cfg",
                                         position: (312, 17),
                                        },
                                        attribute_path: AttributePath {
                                         attributes: [
                                          Raw {
                                           content: "python",
                                           position: (312, 21),
                                          },
                                         ],
                                        },
                                        default: None,
                                       },
                                      },
                                      Raw {
                                       content: "/bin/srht-update-profiles ",
                                       position: (312, 28),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "iniKey",
                                        position: (312, 56),
                                       },
                                      },
                                      Raw {
                                       content: "\n  touch ",
                                       position: (312, 63),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "stateDir",
                                        position: (313, 23),
                                       },
                                      },
                                      Raw {
                                       content: "/webhook\nfi\n",
                                       position: (313, 32),
                                      },
                                     ],
                                    },
                                   ],
                                  },
                                  position: (284, 22),
                                 },
                                ),
                               ],
                               recursive: false,
                               position: (268, 9),
                              },
                              Variable {
                               identifier: "mainService",
                               position: (316, 11),
                              },
                             ],
                             position: (267, 86),
                            },
                           ],
                          },
                         ],
                        },
                       ),
                      ],
                      recursive: false,
                      position: (266, 7),
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mkIf",
                       position: (319, 8),
                      },
                      arguments: [
                       Variable {
                        identifier: "webhooks",
                        position: (319, 13),
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Expression {
                             expression: String {
                              parts: [
                               Expression {
                                expression: Variable {
                                 identifier: "srvsrht",
                                 position: (320, 12),
                                },
                               },
                               Raw {
                                content: "-webhooks",
                                position: (320, 20),
                               },
                              ],
                             },
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "baseService",
                            position: (320, 33),
                           },
                           arguments: [
                            String {
                             parts: [
                              Expression {
                               expression: Variable {
                                identifier: "srvsrht",
                                position: (320, 48),
                               },
                              },
                              Raw {
                               content: "-webhooks",
                               position: (320, 56),
                              },
                             ],
                            },
                            Map {
                             bindings: [],
                             recursive: false,
                             position: (320, 67),
                            },
                            Map {
                             bindings: [
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "description",
                                  position: (322, 13),
                                 },
                                ],
                               },
                               String {
                                parts: [
                                 Raw {
                                  content: "sourcehut ",
                                  position: (322, 28),
                                 },
                                 Expression {
                                  expression: Variable {
                                   identifier: "srv",
                                   position: (322, 40),
                                  },
                                 },
                                 Raw {
                                  content: ".sr.ht webhooks service",
                                  position: (322, 44),
                                 },
                                ],
                               },
                              ),
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "after",
                                  position: (323, 13),
                                 },
                                ],
                               },
                               List {
                                elements: [
                                 String {
                                  parts: [
                                   Expression {
                                    expression: Variable {
                                     identifier: "srvsrht",
                                     position: (323, 26),
                                    },
                                   },
                                   Raw {
                                    content: ".service",
                                    position: (323, 34),
                                   },
                                  ],
                                 },
                                ],
                                position: (323, 21),
                               },
                              ),
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "wantedBy",
                                  position: (324, 13),
                                 },
                                ],
                               },
                               List {
                                elements: [
                                 String {
                                  parts: [
                                   Expression {
                                    expression: Variable {
                                     identifier: "srvsrht",
                                     position: (324, 29),
                                    },
                                   },
                                   Raw {
                                    content: ".service",
                                    position: (324, 37),
                                   },
                                  ],
                                 },
                                ],
                                position: (324, 24),
                               },
                              ),
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "partOf",
                                  position: (325, 13),
                                 },
                                ],
                               },
                               List {
                                elements: [
                                 String {
                                  parts: [
                                   Expression {
                                    expression: Variable {
                                     identifier: "srvsrht",
                                     position: (325, 27),
                                    },
                                   },
                                   Raw {
                                    content: ".service",
                                    position: (325, 35),
                                   },
                                  ],
                                 },
                                ],
                                position: (325, 22),
                               },
                              ),
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "preStart",
                                  position: (326, 13),
                                 },
                                ],
                               },
                               String {
                                parts: [
                                 Raw {
                                  content: "cp ",
                                  position: (327, 1),
                                 },
                                 Expression {
                                  expression: FunctionApplication {
                                   function: PropertyAccess {
                                    expression: Variable {
                                     identifier: "pkgs",
                                     position: (327, 20),
                                    },
                                    attribute_path: AttributePath {
                                     attributes: [
                                      Raw {
                                       content: "writeText",
                                       position: (327, 25),
                                      },
                                     ],
                                    },
                                    default: None,
                                   },
                                   arguments: [
                                    String {
                                     parts: [
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (327, 38),
                                       },
                                      },
                                      Raw {
                                       content: "-webhooks-celeryconfig.py",
                                       position: (327, 46),
                                      },
                                     ],
                                    },
                                    PropertyAccess {
                                     expression: Variable {
                                      identifier: "srvCfg",
                                      position: (327, 73),
                                     },
                                     attribute_path: AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "webhooks",
                                        position: (327, 80),
                                       },
                                       Raw {
                                        content: "celeryConfig",
                                        position: (327, 89),
                                       },
                                      ],
                                     },
                                     default: None,
                                    },
                                   ],
                                  },
                                 },
                                 Raw {
                                  content: " \\\n   /run/sourcehut/",
                                  position: (327, 102),
                                 },
                                 Expression {
                                  expression: Variable {
                                   identifier: "srvsrht",
                                   position: (328, 35),
                                  },
                                 },
                                 Raw {
                                  content: "-webhooks/celeryconfig.py\n",
                                  position: (328, 43),
                                 },
                                ],
                               },
                              ),
                              KeyValue(
                               AttributePath {
                                attributes: [
                                 Raw {
                                  content: "serviceConfig",
                                  position: (330, 13),
                                 },
                                ],
                               },
                               Map {
                                bindings: [
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "Type",
                                     position: (331, 15),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "simple",
                                     position: (331, 23),
                                    },
                                   ],
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "Restart",
                                     position: (332, 15),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "always",
                                     position: (332, 26),
                                    },
                                   ],
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "ExecStart",
                                     position: (333, 15),
                                    },
                                   ],
                                  },
                                  BinaryOperation {
                                   operator: Addition,
                                   operands: [
                                    String {
                                     parts: [
                                      Expression {
                                       expression: PropertyAccess {
                                        expression: Variable {
                                         identifier: "cfg",
                                         position: (333, 30),
                                        },
                                        attribute_path: AttributePath {
                                         attributes: [
                                          Raw {
                                           content: "python",
                                           position: (333, 34),
                                          },
                                         ],
                                        },
                                        default: None,
                                       },
                                      },
                                      Raw {
                                       content: "/bin/celery --app ",
                                       position: (333, 41),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (333, 61),
                                       },
                                      },
                                      Raw {
                                       content: ".webhooks worker --hostname ",
                                       position: (333, 69),
                                      },
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (333, 99),
                                       },
                                      },
                                      Raw {
                                       content: "-webhooks@%%h ",
                                       position: (333, 107),
                                      },
                                     ],
                                    },
                                    FunctionApplication {
                                     function: Variable {
                                      identifier: "concatStringsSep",
                                      position: (333, 125),
                                     },
                                     arguments: [
                                      String {
                                       parts: [
                                        Raw {
                                         content: " ",
                                         position: (333, 143),
                                        },
                                       ],
                                      },
                                      PropertyAccess {
                                       expression: Variable {
                                        identifier: "srvCfg",
                                        position: (333, 146),
                                       },
                                       attribute_path: AttributePath {
                                        attributes: [
                                         Raw {
                                          content: "webhooks",
                                          position: (333, 153),
                                         },
                                         Raw {
                                          content: "extraArgs",
                                          position: (333, 162),
                                         },
                                        ],
                                       },
                                       default: None,
                                      },
                                     ],
                                    },
                                   ],
                                   position: (333, 123),
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "ProcSubset",
                                     position: (335, 15),
                                    },
                                   ],
                                  },
                                  FunctionApplication {
                                   function: Variable {
                                    identifier: "mkForce",
                                    position: (335, 28),
                                   },
                                   arguments: [
                                    String {
                                     parts: [
                                      Raw {
                                       content: "all",
                                       position: (335, 37),
                                      },
                                     ],
                                    },
                                   ],
                                  },
                                 ),
                                ],
                                recursive: false,
                                position: (330, 29),
                               },
                              ),
                             ],
                             recursive: false,
                             position: (321, 11),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (319, 22),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mapAttrs",
                       position: (340, 8),
                      },
                      arguments: [
                       Function {
                        argument: Some(
                         "timerName",
                        ),
                        arguments: FunctionArguments {
                         arguments: [],
                         ellipsis: false,
                        },
                        definition: Function {
                         argument: Some(
                          "timer",
                         ),
                         arguments: FunctionArguments {
                          arguments: [],
                          ellipsis: false,
                         },
                         definition: FunctionApplication {
                          function: Variable {
                           identifier: "baseService",
                           position: (340, 37),
                          },
                          arguments: [
                           Variable {
                            identifier: "timerName",
                            position: (340, 49),
                           },
                           Map {
                            bindings: [],
                            recursive: false,
                            position: (340, 59),
                           },
                           FunctionApplication {
                            function: Variable {
                             identifier: "mkMerge",
                             position: (340, 63),
                            },
                            arguments: [
                             List {
                              elements: [
                               Map {
                                bindings: [
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "description",
                                     position: (342, 11),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "sourcehut ",
                                     position: (342, 26),
                                    },
                                    Expression {
                                     expression: Variable {
                                      identifier: "timerName",
                                      position: (342, 38),
                                     },
                                    },
                                    Raw {
                                     content: " service",
                                     position: (342, 48),
                                    },
                                   ],
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "after",
                                     position: (343, 11),
                                    },
                                   ],
                                  },
                                  List {
                                   elements: [
                                    String {
                                     parts: [
                                      Raw {
                                       content: "network.target",
                                       position: (343, 22),
                                      },
                                     ],
                                    },
                                    String {
                                     parts: [
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (343, 41),
                                       },
                                      },
                                      Raw {
                                       content: ".service",
                                       position: (343, 49),
                                      },
                                     ],
                                    },
                                   ],
                                   position: (343, 19),
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "serviceConfig",
                                     position: (344, 11),
                                    },
                                   ],
                                  },
                                  Map {
                                   bindings: [
                                    KeyValue(
                                     AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "Type",
                                        position: (345, 13),
                                       },
                                      ],
                                     },
                                     String {
                                      parts: [
                                       Raw {
                                        content: "oneshot",
                                        position: (345, 21),
                                       },
                                      ],
                                     },
                                    ),
                                    KeyValue(
                                     AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "ExecStart",
                                        position: (346, 13),
                                       },
                                      ],
                                     },
                                     String {
                                      parts: [
                                       Expression {
                                        expression: PropertyAccess {
                                         expression: Variable {
                                          identifier: "cfg",
                                          position: (346, 28),
                                         },
                                         attribute_path: AttributePath {
                                          attributes: [
                                           Raw {
                                            content: "python",
                                            position: (346, 32),
                                           },
                                          ],
                                         },
                                         default: None,
                                        },
                                       },
                                       Raw {
                                        content: "/bin/",
                                        position: (346, 39),
                                       },
                                       Expression {
                                        expression: Variable {
                                         identifier: "timerName",
                                         position: (346, 46),
                                        },
                                       },
                                      ],
                                     },
                                    ),
                                   ],
                                   recursive: false,
                                   position: (344, 27),
                                  },
                                 ),
                                ],
                                recursive: false,
                                position: (341, 9),
                               },
                               PropertyAccess {
                                expression: Variable {
                                 identifier: "timer",
                                 position: (349, 10),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "service",
                                   position: (349, 16),
                                  },
                                 ],
                                },
                                default: Some(
                                 Map {
                                  bindings: [],
                                  recursive: false,
                                  position: (349, 27),
                                 },
                                ),
                               },
                              ],
                              position: (340, 71),
                             },
                            ],
                           },
                          ],
                         },
                         position: (340, 29),
                        },
                        position: (340, 18),
                       },
                       Variable {
                        identifier: "extraTimers",
                        position: (350, 12),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: Variable {
                       identifier: "mapAttrs",
                       position: (352, 8),
                      },
                      arguments: [
                       Function {
                        argument: Some(
                         "serviceName",
                        ),
                        arguments: FunctionArguments {
                         arguments: [],
                         ellipsis: false,
                        },
                        definition: Function {
                         argument: Some(
                          "extraService",
                         ),
                         arguments: FunctionArguments {
                          arguments: [],
                          ellipsis: false,
                         },
                         definition: FunctionApplication {
                          function: Variable {
                           identifier: "baseService",
                           position: (352, 45),
                          },
                          arguments: [
                           Variable {
                            identifier: "serviceName",
                            position: (352, 57),
                           },
                           Map {
                            bindings: [],
                            recursive: false,
                            position: (352, 69),
                           },
                           FunctionApplication {
                            function: Variable {
                             identifier: "mkMerge",
                             position: (352, 73),
                            },
                            arguments: [
                             List {
                              elements: [
                               Map {
                                bindings: [
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "description",
                                     position: (354, 11),
                                    },
                                   ],
                                  },
                                  String {
                                   parts: [
                                    Raw {
                                     content: "sourcehut ",
                                     position: (354, 26),
                                    },
                                    Expression {
                                     expression: Variable {
                                      identifier: "serviceName",
                                      position: (354, 38),
                                     },
                                    },
                                    Raw {
                                     content: " service",
                                     position: (354, 50),
                                    },
                                   ],
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "after",
                                     position: (356, 11),
                                    },
                                   ],
                                  },
                                  List {
                                   elements: [
                                    String {
                                     parts: [
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (356, 24),
                                       },
                                      },
                                      Raw {
                                       content: ".service",
                                       position: (356, 32),
                                      },
                                     ],
                                    },
                                   ],
                                   position: (356, 19),
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "wantedBy",
                                     position: (357, 11),
                                    },
                                   ],
                                  },
                                  List {
                                   elements: [
                                    String {
                                     parts: [
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (357, 27),
                                       },
                                      },
                                      Raw {
                                       content: ".service",
                                       position: (357, 35),
                                      },
                                     ],
                                    },
                                   ],
                                   position: (357, 22),
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "partOf",
                                     position: (358, 11),
                                    },
                                   ],
                                  },
                                  List {
                                   elements: [
                                    String {
                                     parts: [
                                      Expression {
                                       expression: Variable {
                                        identifier: "srvsrht",
                                        position: (358, 25),
                                       },
                                      },
                                      Raw {
                                       content: ".service",
                                       position: (358, 33),
                                      },
                                     ],
                                    },
                                   ],
                                   position: (358, 20),
                                  },
                                 ),
                                 KeyValue(
                                  AttributePath {
                                   attributes: [
                                    Raw {
                                     content: "serviceConfig",
                                     position: (359, 11),
                                    },
                                   ],
                                  },
                                  Map {
                                   bindings: [
                                    KeyValue(
                                     AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "Type",
                                        position: (360, 13),
                                       },
                                      ],
                                     },
                                     String {
                                      parts: [
                                       Raw {
                                        content: "simple",
                                        position: (360, 21),
                                       },
                                      ],
                                     },
                                    ),
                                    KeyValue(
                                     AttributePath {
                                      attributes: [
                                       Raw {
                                        content: "Restart",
                                        position: (361, 13),
                                       },
                                      ],
                                     },
                                     FunctionApplication {
                                      function: Variable {
                                       identifier: "mkDefault",
                                       position: (361, 23),
                                      },
                                      arguments: [
                                       String {
                                        parts: [
                                         Raw {
                                          content: "always",
                                          position: (361, 34),
                                         },
                                        ],
                                       },
                                      ],
                                     },
                                    ),
                                   ],
                                   recursive: false,
                                   position: (359, 27),
                                  },
                                 ),
                                ],
                                recursive: false,
                                position: (353, 9),
                               },
                               Variable {
                                identifier: "extraService",
                                position: (364, 9),
                               },
                              ],
                              position: (352, 81),
                             },
                            ],
                           },
                          ],
                         },
                         position: (352, 31),
                        },
                        position: (352, 18),
                       },
                       Variable {
                        identifier: "extraServices",
                        position: (365, 11),
                       },
                      ],
                     },
                    ],
                    position: (265, 32),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "systemd",
                    position: (368, 5),
                   },
                   Raw {
                    content: "timers",
                    position: (368, 13),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mapAttrs",
                   position: (368, 22),
                  },
                  arguments: [
                   Function {
                    argument: Some(
                     "timerName",
                    ),
                    arguments: FunctionArguments {
                     arguments: [],
                     ellipsis: false,
                    },
                    definition: Function {
                     argument: Some(
                      "timer",
                     ),
                     arguments: FunctionArguments {
                      arguments: [],
                      ellipsis: false,
                     },
                     definition: Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "description",
                           position: (370, 9),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "sourcehut timer for ",
                           position: (370, 24),
                          },
                          Expression {
                           expression: Variable {
                            identifier: "timerName",
                            position: (370, 46),
                           },
                          },
                         ],
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "wantedBy",
                           position: (371, 9),
                          },
                         ],
                        },
                        List {
                         elements: [
                          String {
                           parts: [
                            Raw {
                             content: "timers.target",
                             position: (371, 23),
                            },
                           ],
                          },
                         ],
                         position: (371, 20),
                        },
                       ),
                       Inherit(
                        Some(
                         Variable {
                          identifier: "timer",
                          position: (372, 18),
                         },
                        ),
                        [
                         Raw {
                          content: "timerConfig",
                          position: (372, 25),
                         },
                        ],
                       ),
                      ],
                      recursive: false,
                      position: (369, 7),
                     },
                     position: (368, 43),
                    },
                    position: (368, 32),
                   },
                   Variable {
                    identifier: "extraTimers",
                    position: (373, 10),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (195, 74),
              },
             ],
             position: (195, 60),
            },
           ],
          },
         ],
        },
       ),
      ],
      recursive: false,
      position: (118, 1),
     },
     position: (15, 1),
    },
    position: (14, 1),
   },
   position: (12, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}