---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "options",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (5, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (5, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (5, 16),
        },
        Raw {
         content: "sourcehut",
         position: (5, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "opt",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "options",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 17),
        },
        Raw {
         content: "sourcehut",
         position: (6, 26),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "scfg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "cfg",
       position: (7, 10),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "hg",
         position: (7, 14),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "iniKey",
        position: (8, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "hg.sr.ht",
        position: (8, 13),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "rcfg",
        position: (10, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (10, 10),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (10, 17),
        },
        Raw {
         content: "redis",
         position: (10, 26),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "drv",
        position: (11, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (11, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "sourcehut",
         position: (11, 14),
        },
        Raw {
         content: "hgsrht",
         position: (11, 24),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (14, 3),
        },
        Raw {
         content: "services",
         position: (14, 11),
        },
        Raw {
         content: "sourcehut",
         position: (14, 20),
        },
        Raw {
         content: "hg",
         position: (14, 30),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "user",
            position: (15, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (15, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (16, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (16, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (16, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "internal",
                 position: (17, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (17, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "readOnly",
                 position: (18, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (18, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (19, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "hg",
                 position: (19, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (20, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "User for hg.sr.ht.\n",
                 position: (21, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (15, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "port",
            position: (25, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (25, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (26, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (26, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "port",
                  position: (26, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (27, 7),
                },
               ],
              },
              Int {
               value: 5010,
               position: (27, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (28, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Port on which the \"hg\" module should listen.\n",
                 position: (29, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (25, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "database",
            position: (33, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (33, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (34, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (34, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (34, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (35, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "hg.sr.ht",
                 position: (35, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (36, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PostgreSQL database name for hg.sr.ht.\n",
                 position: (37, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (33, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "statePath",
            position: (41, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (41, 17),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (42, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (42, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "path",
                  position: (42, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (43, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (43, 20),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "statePath",
                     position: (43, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/hgsrht",
                 position: (43, 34),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (44, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (44, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (44, 41),
                  },
                  Raw {
                   content: "$",
                   position: (44, 42),
                  },
                  Raw {
                   content: "{config.",
                   position: (44, 45),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "opt",
                     position: (44, 55),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "statePath",
                       position: (44, 59),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "}/hgsrht\"",
                   position: (44, 69),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (45, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "State path for hg.sr.ht.\n",
                 position: (46, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (41, 26),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "cloneBundles",
            position: (50, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (50, 20),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (51, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (51, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (51, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (52, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (52, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (53, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Generate clonebundles (which require more disk space but dramatically speed up cloning large repositories).\n",
                 position: (54, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (50, 29),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (14, 35),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (59, 3),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "scfg",
        position: (59, 17),
       },
       target: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (59, 23),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "mkIf",
            position: (59, 27),
           },
          ],
         },
         default: None,
        },
        arguments: [
         BinaryOperation {
          operator: LogicalAnd,
          operands: [
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (59, 33),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (59, 37),
              },
             ],
            },
            default: None,
           },
           FunctionApplication {
            function: Variable {
             identifier: "elem",
             position: (59, 47),
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "hg",
                position: (59, 53),
               },
              ],
             },
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (59, 57),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "services",
                 position: (59, 61),
                },
               ],
              },
              default: None,
             },
            ],
           },
          ],
          position: (59, 44),
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (61, 5),
              },
              Raw {
               content: "etc",
               position: (61, 17),
              },
              Expression {
               expression: String {
                parts: [
                 Raw {
                  content: "ssh/hgsrht-dispatch",
                  position: (61, 22),
                 },
                ],
               },
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "mode",
                  position: (62, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "0755",
                  position: (62, 15),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "text",
                  position: (63, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "#! ",
                  position: (64, 1),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (64, 14),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "stdenv",
                      position: (64, 19),
                     },
                     Raw {
                      content: "shell",
                      position: (64, 26),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\n",
                  position: (64, 32),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (65, 11),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "python",
                      position: (65, 15),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/gitsrht-dispatch $@\n",
                  position: (65, 22),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (61, 45),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (69, 5),
              },
              Raw {
               content: "systemPackages",
               position: (69, 17),
              },
             ],
            },
            List {
             elements: [
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (69, 36),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "mercurial",
                  position: (69, 41),
                 },
                ],
               },
               default: None,
              },
             ],
             position: (69, 34),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "users",
               position: (71, 5),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "users",
                  position: (72, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Expression {
                     expression: String {
                      parts: [
                       Expression {
                        expression: Variable {
                         identifier: "user",
                         position: (73, 12),
                        },
                       },
                      ],
                     },
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "isSystemUser",
                        position: (74, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (74, 26),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "group",
                        position: (75, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "user",
                      position: (75, 19),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "shell",
                        position: (77, 11),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (77, 19),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "bash",
                         position: (77, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "description",
                        position: (78, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "hg.sr.ht user",
                        position: (78, 26),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (73, 21),
                  },
                 ),
                ],
                recursive: false,
                position: (72, 15),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "groups",
                  position: (82, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Expression {
                     expression: String {
                      parts: [
                       Expression {
                        expression: Variable {
                         identifier: "user",
                         position: (83, 12),
                        },
                       },
                      ],
                     },
                    },
                   ],
                  },
                  Map {
                   bindings: [],
                   recursive: false,
                   position: (83, 21),
                  },
                 ),
                ],
                recursive: false,
                position: (82, 16),
               },
              ),
             ],
             recursive: false,
             position: (71, 13),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (87, 5),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "cron",
                  position: (88, 7),
                 },
                 Raw {
                  content: "systemCronJobs",
                  position: (88, 12),
                 },
                ],
               },
               BinaryOperation {
                operator: Concatenation,
                operands: [
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "*/20 * * * * ",
                      position: (88, 32),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (88, 47),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "python",
                          position: (88, 51),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/hgsrht-periodic",
                      position: (88, 58),
                     },
                    ],
                   },
                  ],
                  position: (88, 29),
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "optional",
                   position: (89, 12),
                  },
                  arguments: [
                   Variable {
                    identifier: "cloneBundles",
                    position: (89, 21),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "0 * * * * ",
                      position: (89, 35),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (89, 47),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "python",
                          position: (89, 51),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/hgsrht-clonebundles",
                      position: (89, 58),
                     },
                    ],
                   },
                  ],
                 },
                ],
                position: (89, 9),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "openssh",
                  position: (91, 7),
                 },
                 Raw {
                  content: "authorizedKeysCommand",
                  position: (91, 15),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "/etc/ssh/hgsrht-dispatch \"%u\" \"%h\" \"%t\" \"%k\"",
                  position: (91, 41),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "openssh",
                  position: (92, 7),
                 },
                 Raw {
                  content: "authorizedKeysCommandUser",
                  position: (92, 15),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "root",
                  position: (92, 44),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "openssh",
                  position: (93, 7),
                 },
                 Raw {
                  content: "extraConfig",
                  position: (93, 15),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "PermitUserEnvironment SRHT_*\n",
                  position: (94, 1),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "postgresql",
                  position: (97, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "authentication",
                     position: (98, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "local ",
                     position: (99, 1),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "database",
                      position: (99, 19),
                     },
                    },
                    Raw {
                     content: " ",
                     position: (99, 28),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "user",
                      position: (99, 31),
                     },
                    },
                    Raw {
                     content: " trust\n",
                     position: (99, 36),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ensureDatabases",
                     position: (101, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    Variable {
                     identifier: "database",
                     position: (101, 29),
                    },
                   ],
                   position: (101, 27),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ensureUsers",
                     position: (102, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "name",
                          position: (104, 13),
                         },
                        ],
                       },
                       Variable {
                        identifier: "user",
                        position: (104, 20),
                       },
                      ),
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "ensurePermissions",
                          position: (105, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Expression {
                             expression: String {
                              parts: [
                               Raw {
                                content: "DATABASE \"",
                                position: (105, 36),
                               },
                               Expression {
                                expression: Variable {
                                 identifier: "database",
                                 position: (105, 49),
                                },
                               },
                               Raw {
                                content: "\"",
                                position: (105, 58),
                               },
                              ],
                             },
                            },
                           ],
                          },
                          String {
                           parts: [
                            Raw {
                             content: "ALL PRIVILEGES",
                             position: (105, 65),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (105, 33),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (103, 11),
                    },
                   ],
                   position: (102, 23),
                  },
                 ),
                ],
                recursive: false,
                position: (97, 20),
               },
              ),
             ],
             recursive: false,
             position: (87, 16),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (111, 5),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "tmpfiles",
                  position: (112, 7),
                 },
                 Raw {
                  content: "rules",
                  position: (112, 16),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "f /var/log/hg-srht-shell 0644 ",
                    position: (114, 10),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (114, 42),
                    },
                   },
                   Raw {
                    content: " ",
                    position: (114, 47),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (114, 50),
                    },
                   },
                   Raw {
                    content: " -",
                    position: (114, 55),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "d ",
                    position: (116, 10),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "statePath",
                     position: (116, 14),
                    },
                   },
                   Raw {
                    content: " 0750 ",
                    position: (116, 24),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (116, 32),
                    },
                   },
                   Raw {
                    content: " ",
                    position: (116, 37),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (116, 40),
                    },
                   },
                   Raw {
                    content: " -",
                    position: (116, 45),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "d ",
                    position: (117, 10),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (117, 14),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "settings",
                        position: (117, 18),
                       },
                       Expression {
                        expression: String {
                         parts: [
                          Expression {
                           expression: Variable {
                            identifier: "iniKey",
                            position: (117, 30),
                           },
                          },
                         ],
                        },
                       },
                       Raw {
                        content: "repos",
                        position: (117, 39),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: " 2755 ",
                    position: (117, 45),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (117, 53),
                    },
                   },
                   Raw {
                    content: " ",
                    position: (117, 58),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (117, 61),
                    },
                   },
                   Raw {
                    content: " -",
                    position: (117, 66),
                   },
                  ],
                 },
                ],
                position: (112, 24),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "services",
                  position: (120, 7),
                 },
                 Raw {
                  content: "hgsrht",
                  position: (120, 16),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "import",
                 position: (120, 25),
                },
                arguments: [
                 Path {
                  parts: [
                   Raw {
                    content: "./service.nix",
                    position: (120, 32),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   Inherit(
                    None,
                    [
                     Raw {
                      content: "config",
                      position: (120, 56),
                     },
                     Raw {
                      content: "pkgs",
                      position: (120, 63),
                     },
                     Raw {
                      content: "lib",
                      position: (120, 68),
                     },
                    ],
                   ),
                  ],
                  recursive: false,
                  position: (120, 46),
                 },
                 Variable {
                  identifier: "scfg",
                  position: (120, 75),
                 },
                 Variable {
                  identifier: "drv",
                  position: (120, 80),
                 },
                 Variable {
                  identifier: "iniKey",
                  position: (120, 84),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "after",
                       position: (121, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "redis.service",
                         position: (121, 20),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "postgresql.service",
                         position: (121, 36),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "network.target",
                         position: (121, 57),
                        },
                       ],
                      },
                     ],
                     position: (121, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "requires",
                       position: (122, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "redis.service",
                         position: (122, 23),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "postgresql.service",
                         position: (122, 39),
                        },
                       ],
                      },
                     ],
                     position: (122, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "wantedBy",
                       position: (123, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      String {
                       parts: [
                        Raw {
                         content: "multi-user.target",
                         position: (123, 23),
                        },
                       ],
                      },
                     ],
                     position: (123, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "path",
                       position: (125, 9),
                      },
                     ],
                    },
                    List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (125, 18),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "mercurial",
                          position: (125, 23),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (125, 16),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (126, 9),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "hg.sr.ht website service",
                       position: (126, 24),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "serviceConfig",
                       position: (128, 9),
                      },
                      Raw {
                       content: "ExecStart",
                       position: (128, 23),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (128, 38),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "python",
                           position: (128, 42),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/gunicorn ",
                       position: (128, 49),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "drv",
                         position: (128, 65),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "pname",
                           position: (128, 69),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: ".app:app -b ",
                       position: (128, 75),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (128, 89),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "address",
                           position: (128, 93),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: ":",
                       position: (128, 101),
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "toString",
                         position: (128, 104),
                        },
                        arguments: [
                         Variable {
                          identifier: "port",
                          position: (128, 113),
                         },
                        ],
                       },
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (120, 91),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (111, 15),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (132, 5),
              },
              Raw {
               content: "sourcehut",
               position: (132, 14),
              },
              Raw {
               content: "settings",
               position: (132, 24),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (134, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "origin",
                  position: (134, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (134, 27),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "http://hg.",
                    position: (134, 38),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (134, 50),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "originBase",
                        position: (134, 54),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (136, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "debug-host",
                  position: (136, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (136, 31),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "0.0.0.0",
                    position: (136, 42),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (137, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "debug-port",
                  position: (137, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (137, 31),
                },
                arguments: [
                 Variable {
                  identifier: "port",
                  position: (137, 41),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (139, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "connection-string",
                  position: (139, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (139, 38),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "postgresql:///",
                    position: (139, 49),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "database",
                     position: (139, 65),
                    },
                   },
                   Raw {
                    content: "?user=",
                    position: (139, 74),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (139, 82),
                    },
                   },
                   Raw {
                    content: "&host=/var/run/postgresql",
                    position: (139, 87),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (141, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "webhooks",
                  position: (141, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (141, 29),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "redis://",
                    position: (141, 40),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "rcfg",
                      position: (141, 50),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "bind",
                        position: (141, 55),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: ":",
                    position: (141, 60),
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "toString",
                      position: (141, 63),
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "rcfg",
                        position: (141, 72),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "port",
                          position: (141, 77),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   },
                   Raw {
                    content: "/1",
                    position: (141, 82),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (143, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "changegroup-script",
                  position: (143, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (143, 39),
                },
                arguments: [
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (143, 52),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "python",
                        position: (143, 56),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/hgsrht-hook-changegroup",
                    position: (143, 63),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (146, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "oauth-client-id",
                  position: (146, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (146, 36),
                },
                arguments: [
                 Variable {
                  identifier: "null",
                  position: (146, 46),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (147, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "oauth-client-secret",
                  position: (147, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (147, 40),
                },
                arguments: [
                 Variable {
                  identifier: "null",
                  position: (147, 50),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht",
                     position: (149, 8),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "repos",
                  position: (149, 18),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (149, 26),
                },
                arguments: [
                 String {
                  parts: [
                   Raw {
                    content: "/var/lib/hg",
                    position: (149, 37),
                   },
                  ],
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "hg.sr.ht::dispatch",
                     position: (164, 8),
                    },
                   ],
                  },
                 },
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "/run/current-system/sw/bin/hgsrht-keys",
                     position: (164, 29),
                    },
                   ],
                  },
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkDefault",
                 position: (164, 71),
                },
                arguments: [
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (164, 84),
                    },
                   },
                   Raw {
                    content: ":",
                    position: (164, 89),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "user",
                     position: (164, 92),
                    },
                   },
                  ],
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (132, 35),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (168, 5),
              },
              Raw {
               content: "nginx",
               position: (168, 14),
              },
              Raw {
               content: "virtualHosts",
               position: (168, 20),
              },
              Expression {
               expression: String {
                parts: [
                 Raw {
                  content: "hg.",
                  position: (168, 34),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (168, 39),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "originBase",
                      position: (168, 43),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                ],
               },
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "forceSSL",
                  position: (169, 7),
                 },
                ],
               },
               Variable {
                identifier: "true",
                position: (169, 18),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "locations",
                  position: (170, 7),
                 },
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "/",
                     position: (170, 18),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "proxyPass",
                  position: (170, 21),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "http://",
                  position: (170, 34),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (170, 43),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "address",
                      position: (170, 47),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: ":",
                  position: (170, 55),
                 },
                 Expression {
                  expression: FunctionApplication {
                   function: Variable {
                    identifier: "toString",
                    position: (170, 58),
                   },
                   arguments: [
                    Variable {
                     identifier: "port",
                     position: (170, 67),
                    },
                   ],
                  },
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "locations",
                  position: (171, 7),
                 },
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "/query",
                     position: (171, 18),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "proxyPass",
                  position: (171, 26),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "http://",
                  position: (171, 39),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (171, 48),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "address",
                      position: (171, 52),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: ":",
                  position: (171, 60),
                 },
                 Expression {
                  expression: FunctionApplication {
                   function: Variable {
                    identifier: "toString",
                    position: (171, 63),
                   },
                   arguments: [
                    BinaryOperation {
                     operator: Addition,
                     operands: [
                      Variable {
                       identifier: "port",
                       position: (171, 73),
                      },
                      Int {
                       value: 100,
                       position: (171, 80),
                      },
                     ],
                     position: (171, 78),
                    },
                   ],
                  },
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "locations",
                  position: (172, 7),
                 },
                 Expression {
                  expression: String {
                   parts: [
                    Raw {
                     content: "/static",
                     position: (172, 18),
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "root",
                  position: (172, 27),
                 },
                ],
               },
               String {
                parts: [
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (172, 37),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "sourcehut",
                      position: (172, 42),
                     },
                     Raw {
                      content: "hgsrht",
                      position: (172, 52),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/",
                  position: (172, 59),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (172, 62),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "sourcehut",
                      position: (172, 67),
                     },
                     Raw {
                      content: "python",
                      position: (172, 77),
                     },
                     Raw {
                      content: "sitePackages",
                      position: (172, 84),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/hgsrht",
                  position: (172, 97),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (168, 58),
            },
           ),
          ],
          recursive: false,
          position: (59, 71),
         },
        ],
       },
       position: (59, 12),
      },
     ),
    ],
    recursive: false,
    position: (13, 1),
   },
   position: (4, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}