---
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: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "gogs",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "opt",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "options",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (7, 17),
        },
        Raw {
         content: "gogs",
         position: (7, 26),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (8, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "app.ini",
          position: (8, 32),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "APP_NAME = ",
          position: (9, 1),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (9, 18),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "appName",
              position: (9, 22),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nRUN_USER = ",
          position: (9, 30),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (10, 18),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "user",
              position: (10, 22),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nRUN_MODE = prod\n\n[database]\nDB_TYPE = ",
          position: (10, 27),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (14, 17),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "database",
              position: (14, 21),
             },
             Raw {
              content: "type",
              position: (14, 30),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nHOST = ",
          position: (14, 35),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (15, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "database",
              position: (15, 18),
             },
             Raw {
              content: "host",
              position: (15, 27),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: ":",
          position: (15, 32),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "toString",
            position: (15, 35),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (15, 44),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "database",
                position: (15, 48),
               },
               Raw {
                content: "port",
                position: (15, 57),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\nNAME = ",
          position: (15, 62),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (16, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "database",
              position: (16, 18),
             },
             Raw {
              content: "name",
              position: (16, 27),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nUSER = ",
          position: (16, 32),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (17, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "database",
              position: (17, 18),
             },
             Raw {
              content: "user",
              position: (17, 27),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nPASSWD = #dbpass#\nPATH = ",
          position: (17, 32),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (19, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "database",
              position: (19, 18),
             },
             Raw {
              content: "path",
              position: (19, 27),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n\n[repository]\nROOT = ",
          position: (19, 32),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (22, 14),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "repositoryRoot",
              position: (22, 18),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n\n[server]\nDOMAIN = ",
          position: (22, 33),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (25, 16),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "domain",
              position: (25, 20),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nHTTP_ADDR = ",
          position: (25, 27),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (26, 19),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "httpAddress",
              position: (26, 23),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\nHTTP_PORT = ",
          position: (26, 35),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "toString",
            position: (27, 19),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (27, 28),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "httpPort",
                position: (27, 32),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\nROOT_URL = ",
          position: (27, 41),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (28, 18),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "rootUrl",
              position: (28, 22),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n\n[session]\nCOOKIE_NAME = session\nCOOKIE_SECURE = ",
          position: (28, 30),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "boolToString",
            position: (32, 23),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (32, 36),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "cookieSecure",
                position: (32, 40),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\n\n[security]\nSECRET_KEY = #secretkey#\nINSTALL_LOCK = true\n\n[log]\nROOT_PATH = ",
          position: (32, 53),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (39, 19),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "stateDir",
              position: (39, 23),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "/log\n\n",
          position: (39, 32),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (41, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "extraConfig",
              position: (41, 11),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (41, 23),
         },
        ],
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (46, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (47, 5),
           },
           Raw {
            content: "gogs",
            position: (47, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (48, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (48, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (49, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (49, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (50, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (50, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (50, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (51, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Enable Go Git Service.",
                    position: (51, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (48, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "useWizard",
               position: (54, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (54, 19),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (55, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (55, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (56, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (56, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (56, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (57, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Do not generate a configuration and use Gogs' installation wizard instead. The first registered user will be administrator.",
                    position: (57, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (54, 28),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "stateDir",
               position: (60, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (60, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (61, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/var/lib/gogs",
                    position: (61, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (62, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (62, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (62, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (63, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Gogs data directory.",
                    position: (63, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (60, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (66, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (66, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (67, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (67, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (67, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (68, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "gogs",
                    position: (68, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (69, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "User account under which Gogs runs.",
                    position: (69, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (66, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "group",
               position: (72, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (72, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (73, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (73, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (73, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (74, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "gogs",
                    position: (74, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (75, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Group account under which Gogs runs.",
                    position: (75, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (72, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "database",
               position: (78, 7),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (79, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (79, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (80, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (80, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enum",
                         position: (80, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: "sqlite3",
                           position: (80, 32),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "mysql",
                           position: (80, 42),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "postgres",
                           position: (80, 50),
                          },
                         ],
                        },
                       ],
                       position: (80, 29),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "example",
                       position: (81, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "mysql",
                       position: (81, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (82, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "sqlite3",
                       position: (82, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (83, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Database engine to use.",
                       position: (83, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (79, 25),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "host",
                  position: (86, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (86, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (87, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (87, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (87, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (88, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "127.0.0.1",
                       position: (88, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (89, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Database host address.",
                       position: (89, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (86, 25),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "port",
                  position: (92, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (92, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (93, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (93, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "int",
                        position: (93, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (94, 11),
                      },
                     ],
                    },
                    Int {
                     value: 3306,
                     position: (94, 21),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (95, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Database host port.",
                       position: (95, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (92, 25),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "name",
                  position: (98, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (98, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (99, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (99, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (99, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (100, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "gogs",
                       position: (100, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (101, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Database name.",
                       position: (101, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (98, 25),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "user",
                  position: (104, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (104, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (105, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (105, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (105, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (106, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "gogs",
                       position: (106, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (107, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Database user.",
                       position: (107, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (104, 25),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "password",
                  position: (110, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (110, 20),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (111, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (111, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (111, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (112, 11),
                      },
                     ],
                    },
                    String {
                     parts: [],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (113, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "The password corresponding to <option>database.user</option>.\nWarning: this is stored in cleartext in the Nix store!\nUse <option>database.passwordFile</option> instead.\n",
                       position: (114, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (110, 29),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "passwordFile",
                  position: (120, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (120, 24),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (121, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (121, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "nullOr",
                         position: (121, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "types",
                        position: (121, 31),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "path",
                          position: (121, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (122, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "null",
                     position: (122, 21),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "example",
                       position: (123, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "/run/keys/gogs-dbpassword",
                       position: (123, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (124, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "A file containing the password corresponding to\n<option>database.user</option>.\n",
                       position: (125, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (120, 33),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "path",
                  position: (130, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (130, 16),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (131, 11),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (131, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (131, 24),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (132, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (132, 24),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "stateDir",
                           position: (132, 28),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/data/gogs.db",
                       position: (132, 37),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "defaultText",
                       position: (133, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "literalExpression",
                      position: (133, 25),
                     },
                     arguments: [
                      String {
                       parts: [
                        Raw {
                         content: "\"",
                         position: (133, 45),
                        },
                        Raw {
                         content: "$",
                         position: (133, 46),
                        },
                        Raw {
                         content: "{config.",
                         position: (133, 49),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "opt",
                           position: (133, 59),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "stateDir",
                             position: (133, 63),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "}/data/gogs.db\"",
                         position: (133, 72),
                        },
                       ],
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (134, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Path to the sqlite3 database file.",
                       position: (134, 26),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (130, 25),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (78, 18),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "appName",
               position: (138, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (138, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (139, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (139, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (139, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (140, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Gogs: Go Git Service",
                    position: (140, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (141, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Application name.",
                    position: (141, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (138, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "repositoryRoot",
               position: (144, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (144, 24),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (145, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (145, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (145, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (146, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (146, 22),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "stateDir",
                        position: (146, 26),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/repositories",
                    position: (146, 35),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (147, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (147, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "\"",
                      position: (147, 43),
                     },
                     Raw {
                      content: "$",
                      position: (147, 44),
                     },
                     Raw {
                      content: "{config.",
                      position: (147, 47),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "opt",
                        position: (147, 57),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "stateDir",
                          position: (147, 61),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "}/repositories\"",
                      position: (147, 70),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (148, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Path to the git repositories.",
                    position: (148, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (144, 33),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "domain",
               position: (151, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (151, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (152, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (152, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (152, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (153, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "localhost",
                    position: (153, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (154, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Domain name of your server.",
                    position: (154, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (151, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "rootUrl",
               position: (157, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (157, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (158, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (158, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (158, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (159, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "http://localhost:3000/",
                    position: (159, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (160, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Full public URL of Gogs server.",
                    position: (160, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (157, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "httpAddress",
               position: (163, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (163, 21),
             },
             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: [
                   Raw {
                    content: "0.0.0.0",
                    position: (165, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (166, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HTTP listen address.",
                    position: (166, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (163, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "httpPort",
               position: (169, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (169, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (170, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (170, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "int",
                     position: (170, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (171, 9),
                   },
                  ],
                 },
                 Int {
                  value: 3000,
                  position: (171, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (172, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HTTP listen port.",
                    position: (172, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (169, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "cookieSecure",
               position: (175, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (175, 22),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (176, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (176, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (176, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (177, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (177, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (178, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Marks session cookies as \"secure\" as a hint for browsers to only send\nthem via HTTPS. This option is recommend, if Gogs is being served over HTTPS.\n",
                    position: (179, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (175, 31),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (184, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (184, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (185, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (185, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (185, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (186, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (187, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Configuration lines appended to the generated Gogs configuration file.",
                    position: (187, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (184, 30),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (47, 21),
         },
        ),
       ],
       recursive: false,
       position: (46, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (192, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (192, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (192, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (192, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (194, 5),
             },
             Raw {
              content: "services",
              position: (194, 13),
             },
             Raw {
              content: "gogs",
              position: (194, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (195, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Gogs (Go Git Service)",
                 position: (195, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (196, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (196, 18),
                  },
                 ],
                },
               ],
               position: (196, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (197, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (197, 21),
                  },
                 ],
                },
               ],
               position: (197, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "path",
                 position: (198, 7),
                },
               ],
              },
              List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (198, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "gogs",
                    position: (198, 21),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (198, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "preStart",
                 position: (200, 7),
                },
               ],
              },
              LetIn {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "runConfig",
                    position: (201, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (201, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "stateDir",
                        position: (201, 28),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/custom/conf/app.ini",
                    position: (201, 37),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "secretKey",
                    position: (202, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (202, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "stateDir",
                        position: (202, 28),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/custom/conf/secret_key",
                    position: (202, 37),
                   },
                  ],
                 },
                ),
               ],
               target: String {
                parts: [
                 Raw {
                  content: "mkdir -p ",
                  position: (204, 1),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (204, 20),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "stateDir",
                      position: (204, 24),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\n\n# copy custom configuration and generate a random secret key if needed\n",
                  position: (204, 33),
                 },
                 Expression {
                  expression: FunctionApplication {
                   function: Variable {
                    identifier: "optionalString",
                    position: (207, 11),
                   },
                   arguments: [
                    BinaryOperation {
                     operator: EqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (207, 27),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "useWizard",
                          position: (207, 31),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "false",
                       position: (207, 44),
                      },
                     ],
                     position: (207, 41),
                    },
                    String {
                     parts: [
                      Raw {
                       content: "mkdir -p ",
                       position: (208, 1),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (208, 22),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "stateDir",
                           position: (208, 26),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/custom/conf\ncp -f ",
                       position: (208, 35),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "configFile",
                        position: (209, 19),
                       },
                      },
                      Raw {
                       content: " ",
                       position: (209, 30),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "runConfig",
                        position: (209, 33),
                       },
                      },
                      Raw {
                       content: "\n\nif [ ! -e ",
                       position: (209, 43),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "secretKey",
                        position: (211, 23),
                       },
                      },
                      Raw {
                       content: " ]; then\n    head -c 16 /dev/urandom | base64 > ",
                       position: (211, 33),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "secretKey",
                        position: (212, 52),
                       },
                      },
                      Raw {
                       content: "\nfi\n\nKEY=$(head -n1 ",
                       position: (212, 62),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "secretKey",
                        position: (215, 28),
                       },
                      },
                      Raw {
                       content: ")\nDBPASS=$(head -n1 ",
                       position: (215, 38),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (216, 31),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "database",
                           position: (216, 35),
                          },
                          Raw {
                           content: "passwordFile",
                           position: (216, 44),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: ")\nsed -e \"s,#secretkey#,$KEY,g\" \\\n    -e \"s,#dbpass#,$DBPASS,g\" \\\n    -i ",
                       position: (216, 57),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "runConfig",
                        position: (219, 20),
                       },
                      },
                      Raw {
                       content: "\nchmod 440 ",
                       position: (219, 30),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "runConfig",
                        position: (220, 23),
                       },
                      },
                      Raw {
                       content: " ",
                       position: (220, 33),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "secretKey",
                        position: (220, 36),
                       },
                      },
                      Raw {
                       content: "\n",
                       position: (220, 46),
                      },
                     ],
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "\n\nmkdir -p ",
                  position: (221, 12),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (223, 20),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "repositoryRoot",
                      position: (223, 24),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\n# update all hooks' binary paths\nHOOKS=$(find ",
                  position: (223, 39),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (225, 24),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "repositoryRoot",
                      position: (225, 28),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: " -mindepth 4 -maxdepth 4 -type f -wholename \"*git/hooks/*\")\nif [ \"$HOOKS\" ]\nthen\n  sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gogs,",
                  position: (225, 43),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (228, 56),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "gogs",
                      position: (228, 61),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/gogs,g' $HOOKS\n  sed -ri 's,/nix/store/[a-z0-9.-]+/bin/env,",
                  position: (228, 66),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (229, 55),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "coreutils",
                      position: (229, 60),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/env,g' $HOOKS\n  sed -ri 's,/nix/store/[a-z0-9.-]+/bin/bash,",
                  position: (229, 70),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (230, 56),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "bash",
                      position: (230, 61),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/bash,g' $HOOKS\n  sed -ri 's,/nix/store/[a-z0-9.-]+/bin/perl,",
                  position: (230, 66),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (231, 56),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "perl",
                      position: (231, 61),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/perl,g' $HOOKS\nfi\n",
                  position: (231, 66),
                 },
                ],
               },
               position: (200, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (235, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Type",
                    position: (236, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "simple",
                    position: (236, 17),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (237, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (237, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (237, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Group",
                    position: (238, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (238, 17),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "group",
                     position: (238, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (239, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (239, 28),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "stateDir",
                     position: (239, 32),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (240, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (240, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "gogs",
                        position: (240, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/gogs web",
                    position: (240, 34),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (241, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "always",
                    position: (241, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (235, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (244, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "USER",
                    position: (245, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (245, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (245, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "HOME",
                    position: (246, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (246, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "stateDir",
                     position: (246, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "GOGS_WORK_DIR",
                    position: (247, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (247, 25),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "stateDir",
                     position: (247, 29),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (244, 21),
              },
             ),
            ],
            recursive: false,
            position: (194, 29),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (251, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (251, 13),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (251, 19),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (251, 23),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "gogs",
                  position: (251, 32),
                 },
                ],
               },
              ],
              position: (251, 28),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "users",
                   position: (252, 7),
                  },
                  Raw {
                   content: "gogs",
                   position: (252, 13),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (253, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "Go Git Service",
                      position: (253, 24),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "uid",
                      position: (254, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (254, 15),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "ids",
                       position: (254, 22),
                      },
                      Raw {
                       content: "uids",
                       position: (254, 26),
                      },
                      Raw {
                       content: "gogs",
                       position: (254, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (255, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "gogs",
                      position: (255, 18),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "home",
                      position: (256, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (256, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "stateDir",
                       position: (256, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "createHome",
                      position: (257, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "true",
                    position: (257, 22),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "shell",
                      position: (258, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (258, 17),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "bash",
                       position: (258, 22),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                 ],
                 recursive: false,
                 position: (252, 20),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "groups",
                   position: (260, 7),
                  },
                  Raw {
                   content: "gogs",
                   position: (260, 14),
                  },
                  Raw {
                   content: "gid",
                   position: (260, 19),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (260, 25),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "ids",
                    position: (260, 32),
                   },
                   Raw {
                    content: "gids",
                    position: (260, 36),
                   },
                   Raw {
                    content: "gogs",
                    position: (260, 41),
                   },
                  ],
                 },
                 default: None,
                },
               ),
              ],
              recursive: false,
              position: (251, 39),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "warnings",
              position: (263, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optional",
             position: (263, 16),
            },
            arguments: [
             BinaryOperation {
              operator: NotEqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (263, 26),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "database",
                   position: (263, 30),
                  },
                  Raw {
                   content: "password",
                   position: (263, 39),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [],
               },
              ],
              position: (263, 48),
             },
             String {
              parts: [
               Raw {
                content: "config.services.gogs.database.password will be stored as plaintext\n        in the Nix store. Use database.passwordFile instead.",
                position: (264, 9),
               },
              ],
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (268, 5),
             },
             Raw {
              content: "gogs",
              position: (268, 14),
             },
             Raw {
              content: "database",
              position: (268, 19),
             },
             Raw {
              content: "passwordFile",
              position: (268, 28),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkDefault",
             position: (269, 8),
            },
            arguments: [
             FunctionApplication {
              function: Variable {
               identifier: "toString",
               position: (269, 19),
              },
              arguments: [
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (269, 29),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "writeTextFile",
                    position: (269, 34),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "name",
                       position: (270, 9),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "gogs-database-password",
                       position: (270, 17),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "text",
                       position: (271, 9),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (271, 16),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "database",
                        position: (271, 20),
                       },
                       Raw {
                        content: "password",
                        position: (271, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                  ],
                  recursive: false,
                  position: (269, 48),
                 },
                ],
               },
              ],
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (192, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (45, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}