---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "pkg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "haste-server",
         position: (6, 14),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "haste-server",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "format",
        position: (9, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (9, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "formats",
          position: (9, 17),
         },
         Raw {
          content: "json",
          position: (9, 25),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [],
        recursive: false,
        position: (9, 30),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (12, 3),
        },
        Raw {
         content: "services",
         position: (12, 11),
        },
        Raw {
         content: "haste-server",
         position: (12, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (13, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (13, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "haste-server",
             },
            ],
            position: (13, 29),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "openFirewall",
            position: (14, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (14, 20),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "firewall passthrough for haste-server",
             },
            ],
            position: (14, 35),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "settings",
            position: (16, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (16, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (17, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Configuration for haste-server.\nFor documentation see <link xlink:href=\"https://github.com/toptal/haste-server#settings\">project readme</link>\n",
                },
               ],
               position: (17, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (21, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "format",
                position: (21, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "type",
                  position: (21, 21),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (16, 25),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (12, 35),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (25, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (25, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (25, 18),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (25, 22),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (26, 5),
             },
             Raw {
              content: "firewall",
              position: (26, 16),
             },
             Raw {
              content: "allowedTCPPorts",
              position: (26, 25),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (26, 43),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (26, 49),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "openFirewall",
                 position: (26, 53),
                },
               ],
              },
              default: None,
             },
             List {
              elements: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (26, 69),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "settings",
                   position: (26, 73),
                  },
                  Raw {
                   content: "port",
                   position: (26, 82),
                  },
                 ],
                },
                default: None,
               },
              ],
              position: (26, 67),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (28, 5),
             },
             Raw {
              content: "haste-server",
              position: (28, 14),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "settings",
                 position: (29, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "host",
                    position: (30, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (30, 16),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "::",
                     },
                    ],
                    position: (30, 26),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "port",
                    position: (31, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (31, 16),
                  },
                  arguments: [
                   Int {
                    value: 7777,
                    position: (31, 26),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "keyLength",
                    position: (33, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (33, 21),
                  },
                  arguments: [
                   Int {
                    value: 10,
                    position: (33, 31),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "maxLength",
                    position: (34, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (34, 21),
                  },
                  arguments: [
                   Int {
                    value: 400000,
                    position: (34, 31),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "staticMaxAge",
                    position: (36, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (36, 24),
                  },
                  arguments: [
                   Int {
                    value: 86400,
                    position: (36, 34),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "recompressStaticAssets",
                    position: (37, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (37, 34),
                  },
                  arguments: [
                   Variable {
                    identifier: "false",
                    position: (37, 44),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "logging",
                    position: (39, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (39, 19),
                  },
                  arguments: [
                   List {
                    elements: [
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "level",
                           position: (41, 13),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "verbose",
                          },
                         ],
                         position: (41, 21),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "type",
                           position: (42, 13),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "Console",
                          },
                         ],
                         position: (42, 20),
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "colorize",
                           position: (43, 13),
                          },
                         ],
                        },
                        Variable {
                         identifier: "true",
                         position: (43, 24),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (40, 11),
                     },
                    ],
                    position: (39, 29),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "keyGenerator",
                    position: (47, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (47, 24),
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "type",
                         position: (48, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "phonetic",
                        },
                       ],
                       position: (48, 18),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (47, 34),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "rateLimits",
                    position: (51, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "categories",
                       position: (52, 11),
                      },
                     ],
                    },
                    Map {
                     bindings: [
                      KeyValue(
                       AttributePath {
                        attributes: [
                         Raw {
                          content: "normal",
                          position: (53, 13),
                         },
                        ],
                       },
                       Map {
                        bindings: [
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "totalRequests",
                             position: (54, 15),
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkDefault",
                            position: (54, 31),
                           },
                           arguments: [
                            Int {
                             value: 500,
                             position: (54, 41),
                            },
                           ],
                          },
                         ),
                         KeyValue(
                          AttributePath {
                           attributes: [
                            Raw {
                             content: "every",
                             position: (55, 15),
                            },
                           ],
                          },
                          FunctionApplication {
                           function: Variable {
                            identifier: "mkDefault",
                            position: (55, 23),
                           },
                           arguments: [
                            Int {
                             value: 60000,
                             position: (55, 33),
                            },
                           ],
                          },
                         ),
                        ],
                        recursive: false,
                        position: (53, 22),
                       },
                      ),
                     ],
                     recursive: false,
                     position: (52, 24),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (51, 22),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "storage",
                    position: (60, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkDefault",
                   position: (60, 19),
                  },
                  arguments: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "type",
                         position: (61, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "file",
                        },
                       ],
                       position: (61, 18),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (60, 29),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "documents",
                    position: (64, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "about",
                       position: (65, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "mkDefault",
                      position: (65, 19),
                     },
                     arguments: [
                      String {
                       parts: [
                        Expression {
                         expression: Variable {
                          identifier: "pkg",
                          position: (65, 32),
                         },
                        },
                        Raw {
                         content: "/share/haste-server/about.md",
                        },
                       ],
                       position: (65, 29),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (64, 21),
                 },
                ),
               ],
               recursive: false,
               position: (29, 18),
              },
             ),
            ],
            recursive: false,
            position: (28, 29),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (70, 5),
             },
             Raw {
              content: "services",
              position: (70, 13),
             },
             Raw {
              content: "haste-server",
              position: (70, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (71, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                  },
                 ],
                 position: (71, 20),
                },
               ],
               position: (71, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "requires",
                 position: (72, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                  },
                 ],
                 position: (72, 20),
                },
               ],
               position: (72, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (73, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                  },
                 ],
                 position: (73, 17),
                },
               ],
               position: (73, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (75, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (76, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "haste-server",
                   },
                  ],
                  position: (76, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "DynamicUser",
                    position: (77, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (77, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "StateDirectory",
                    position: (78, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "haste-server",
                   },
                  ],
                  position: (78, 26),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (79, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/var/lib/haste-server",
                   },
                  ],
                  position: (79, 28),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (80, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "pkg",
                     position: (80, 24),
                    },
                   },
                   Raw {
                    content: "/bin/haste-server ",
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "format",
                       position: (80, 48),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "generate",
                         position: (80, 55),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      String {
                       parts: [
                        Raw {
                         content: "config.json",
                        },
                       ],
                       position: (80, 64),
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (80, 78),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "settings",
                          position: (80, 82),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   },
                  ],
                  position: (80, 21),
                 },
                ),
               ],
               recursive: false,
               position: (75, 23),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "path",
                 position: (83, 7),
                },
               ],
              },
              With {
               expression: Variable {
                identifier: "pkgs",
                position: (83, 19),
               },
               target: List {
                elements: [
                 Variable {
                  identifier: "pkg",
                  position: (83, 27),
                 },
                 Variable {
                  identifier: "coreutils",
                  position: (83, 31),
                 },
                ],
                position: (83, 25),
               },
               position: (83, 14),
              },
             ),
            ],
            recursive: false,
            position: (70, 37),
           },
          ),
         ],
         recursive: false,
         position: (25, 30),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (11, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}