---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "deliantra-server",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "serverPort",
        position: (7, 3),
       },
      ],
     },
     to: Int {
      value: 13327,
      position: (7, 16),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (9, 3),
        },
        Raw {
         content: "services",
         position: (9, 11),
        },
        Raw {
         content: "deliantra-server",
         position: (9, 20),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (10, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (10, 14),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (11, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (11, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "bool",
                  position: (11, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (12, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (12, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (13, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "If enabled, the Deliantra game server will be started at boot.\n",
                 position: (14, 1),
                },
               ],
               position: (13, 21),
              },
             },
            ],
            recursive: false,
            position: (10, 23),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "package",
            position: (18, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (18, 15),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (19, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (19, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "package",
                  position: (19, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (20, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (20, 17),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "deliantra-server",
                  position: (20, 22),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "defaultText",
                 position: (21, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (21, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.deliantra-server",
                   position: (21, 40),
                  },
                 ],
                 position: (21, 39),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (22, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "The package to use for the Deliantra server (and map/arch data, if you\ndon't change dataDir).\n",
                 position: (23, 1),
                },
               ],
               position: (22, 21),
              },
             },
            ],
            recursive: false,
            position: (18, 24),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "dataDir",
            position: (28, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (28, 15),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (29, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (29, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (29, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (30, 7),
                },
               ],
              },
              to: String {
               parts: [
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (30, 20),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "deliantra-data",
                     position: (30, 25),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
               position: (30, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "defaultText",
                 position: (31, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (31, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (31, 41),
                  },
                  Raw {
                   content: "$",
                   position: (31, 42),
                  },
                  Raw {
                   content: "{pkgs.deliantra-data}\"",
                   position: (31, 45),
                  },
                 ],
                 position: (31, 39),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (32, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Where to store readonly data (maps, archetypes, sprites, etc).\nNote that if you plan to use the live map editor (rather than editing\nthe maps offline and then nixos-rebuilding), THIS MUST BE WRITEABLE --\ncopy the deliantra-data someplace writeable (say,\n/var/lib/deliantra/data) and update this option accordingly.\n",
                 position: (33, 1),
                },
               ],
               position: (32, 21),
              },
             },
            ],
            recursive: false,
            position: (28, 24),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "stateDir",
            position: (41, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (41, 16),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (42, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (42, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (42, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (43, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/var/lib/deliantra",
                 position: (43, 18),
                },
               ],
               position: (43, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (44, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Where to store runtime data (save files, persistent items, etc).\n\nIf left at the default, this will be automatically created on server\nstartup if it does not already exist. If changed, it is the admin's\nresponsibility to make sure that the directory exists and is writeable\nby the `crossfire` user.\n",
                 position: (45, 1),
                },
               ],
               position: (44, 21),
              },
             },
            ],
            recursive: false,
            position: (41, 25),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "openFirewall",
            position: (54, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (54, 20),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (55, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (55, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "bool",
                  position: (55, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (56, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (56, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (57, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Whether to open ports in the firewall for the server.\n",
                 position: (58, 1),
                },
               ],
               position: (57, 21),
              },
             },
            ],
            recursive: false,
            position: (54, 29),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "configFiles",
            position: (62, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (62, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (63, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (63, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "attrsOf",
                   position: (63, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (63, 28),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "str",
                    position: (63, 34),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (64, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Contents of the server configuration files. These will be appended to\nthe example configurations the server comes with and overwrite any\ndefault settings defined therein.\n\nThe example here is not comprehensive. See the files in\n/etc/deliantra-server after enabling this module for full documentation.\n",
                 position: (65, 1),
                },
               ],
               position: (64, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (72, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (72, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  dm_file = ",
                   position: (73, 1),
                  },
                  Raw {
                   content: "''",
                   position: (74, 21),
                  },
                  Raw {
                   content: "\n    admin:secret_password:localhost\n    jane:xyzzy:*\n  ",
                   position: (74, 24),
                  },
                  Raw {
                   content: "''",
                   position: (77, 11),
                  },
                  Raw {
                   content: ";\n  motd = \"Welcome to Deliantra!\";\n  settings = ",
                   position: (77, 14),
                  },
                  Raw {
                   content: "''",
                   position: (79, 22),
                  },
                  Raw {
                   content: "\n    # Settings for game mechanics.\n    stat_loss_on_death true\n    armor_max_enchant 7\n  ",
                   position: (79, 25),
                  },
                  Raw {
                   content: "''",
                   position: (83, 11),
                  },
                  Raw {
                   content: ";\n  config = ",
                   position: (83, 14),
                  },
                  Raw {
                   content: "''",
                   position: (84, 20),
                  },
                  Raw {
                   content: "\n    # Settings for the server daemon.\n    hiscore_url https://deliantra.example.net/scores/\n    max_map_reset 86400\n  ",
                   position: (84, 23),
                  },
                  Raw {
                   content: "''",
                   position: (88, 11),
                  },
                  Raw {
                   content: ";\n}\n",
                   position: (88, 14),
                  },
                 ],
                 position: (72, 35),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (91, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "motd",
                    position: (92, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (92, 16),
                 },
                },
               ],
               recursive: false,
               position: (91, 17),
              },
             },
            ],
            recursive: false,
            position: (62, 28),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (9, 39),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (97, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (97, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (97, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (97, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (98, 5),
             },
             Raw {
              content: "users",
              position: (98, 11),
             },
             Raw {
              content: "deliantra",
              position: (98, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (99, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Deliantra server daemon user",
                 position: (99, 26),
                },
               ],
               position: (99, 25),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "home",
                 position: (100, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (100, 25),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "stateDir",
                  position: (100, 29),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "createHome",
                 position: (101, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (101, 25),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "isSystemUser",
                 position: (102, 7),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (102, 25),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (103, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "deliantra",
                 position: (103, 26),
                },
               ],
               position: (103, 25),
              },
             },
            ],
            recursive: false,
            position: (98, 29),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (105, 5),
             },
             Raw {
              content: "groups",
              position: (105, 11),
             },
             Raw {
              content: "deliantra",
              position: (105, 18),
             },
            ],
           },
           to: Map {
            bindings: [],
            recursive: false,
            position: (105, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (112, 5),
             },
             Raw {
              content: "etc",
              position: (112, 17),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (112, 23),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "attrsets",
                position: (112, 27),
               },
               Raw {
                content: "mapAttrs'",
                position: (112, 36),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Parentheses {
              expression: Function {
               argument: Simple {
                identifier: "name",
               },
               definition: Function {
                argument: Simple {
                 identifier: "value",
                },
                definition: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (113, 21),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "attrsets",
                     position: (113, 25),
                    },
                    Raw {
                     content: "nameValuePair",
                     position: (113, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "deliantra-server/",
                     position: (113, 49),
                    },
                    Interpolation {
                     expression: Variable {
                      identifier: "name",
                      position: (113, 68),
                     },
                    },
                   ],
                   position: (113, 48),
                  },
                  Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "mode",
                        position: (114, 9),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Raw {
                        content: "0644",
                        position: (114, 17),
                       },
                      ],
                      position: (114, 16),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "text",
                        position: (115, 9),
                       },
                      ],
                     },
                     to: BinaryOperation {
                      operator: Addition,
                      operands: [
                       Parentheses {
                        expression: FunctionApplication {
                         function: Variable {
                          identifier: "optionalString",
                          position: (118, 12),
                         },
                         arguments: [
                          Parentheses {
                           expression: BinaryOperation {
                            operator: NotEqualTo,
                            operands: [
                             Variable {
                              identifier: "name",
                              position: (118, 28),
                             },
                             String {
                              parts: [
                               Raw {
                                content: "motd",
                                position: (118, 37),
                               },
                              ],
                              position: (118, 36),
                             },
                            ],
                            position: (118, 33),
                           },
                           position: (118, 27),
                          },
                          Parentheses {
                           expression: FunctionApplication {
                            function: Variable {
                             identifier: "fileContents",
                             position: (119, 14),
                            },
                            arguments: [
                             String {
                              parts: [
                               Interpolation {
                                expression: PropertyAccess {
                                 expression: Variable {
                                  identifier: "cfg",
                                  position: (119, 30),
                                 },
                                 attribute_path: AttributePath {
                                  parts: [
                                   Raw {
                                    content: "package",
                                    position: (119, 34),
                                   },
                                  ],
                                 },
                                 default: None,
                                },
                               },
                               Raw {
                                content: "/etc/deliantra-server/",
                                position: (119, 42),
                               },
                               Interpolation {
                                expression: Variable {
                                 identifier: "name",
                                 position: (119, 66),
                                },
                               },
                              ],
                              position: (119, 27),
                             },
                            ],
                           },
                           position: (119, 13),
                          },
                         ],
                        },
                        position: (118, 11),
                       },
                       String {
                        parts: [
                         Raw {
                          content: "\n",
                          position: (120, 14),
                         },
                         Interpolation {
                          expression: Variable {
                           identifier: "value",
                           position: (120, 18),
                          },
                         },
                        ],
                        position: (120, 13),
                       },
                      ],
                      position: (120, 11),
                     },
                    },
                   ],
                   recursive: false,
                   position: (113, 75),
                  },
                 ],
                },
                position: (113, 14),
               },
               position: (113, 8),
              },
              position: (113, 7),
             },
             Parentheses {
              expression: BinaryOperation {
               operator: Update,
               operands: [
                Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "motd",
                      position: (122, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [],
                    position: (122, 16),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "settings",
                      position: (123, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [],
                    position: (123, 20),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "config",
                      position: (124, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [],
                    position: (124, 18),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "dm_file",
                      position: (125, 9),
                     },
                    ],
                   },
                   to: String {
                    parts: [],
                    position: (125, 19),
                   },
                  },
                 ],
                 recursive: false,
                 position: (121, 11),
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (126, 12),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "configFiles",
                    position: (126, 16),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (126, 9),
              },
              position: (121, 10),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (128, 5),
             },
             Raw {
              content: "services",
              position: (128, 13),
             },
             Raw {
              content: "deliantra-server",
              position: (128, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (129, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Deliantra Server Daemon",
                 position: (129, 24),
                },
               ],
               position: (129, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (130, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (130, 26),
                  },
                 ],
                 position: (130, 25),
                },
               ],
               position: (130, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (131, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (131, 26),
                  },
                 ],
                 position: (131, 25),
                },
               ],
               position: (131, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "environment",
                 position: (133, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "DELIANTRA_DATADIR",
                    position: (134, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (134, 30),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "dataDir",
                        position: (134, 34),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (134, 27),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "DELIANTRA_LOCALDIR",
                    position: (135, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (135, 31),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "stateDir",
                        position: (135, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                  ],
                  position: (135, 28),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "DELIANTRA_CONFDIR",
                    position: (136, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/etc/deliantra-server",
                    position: (136, 28),
                   },
                  ],
                  position: (136, 27),
                 },
                },
               ],
               recursive: false,
               position: (133, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (139, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "mkMerge",
                position: (139, 23),
               },
               arguments: [
                List {
                 elements: [
                  Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "ExecStart",
                        position: (141, 11),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Interpolation {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (141, 26),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "package",
                            position: (141, 30),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "/bin/deliantra-server",
                        position: (141, 38),
                       },
                      ],
                      position: (141, 23),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "Restart",
                        position: (142, 11),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Raw {
                        content: "always",
                        position: (142, 22),
                       },
                      ],
                      position: (142, 21),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "User",
                        position: (143, 11),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Raw {
                        content: "deliantra",
                        position: (143, 19),
                       },
                      ],
                      position: (143, 18),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "Group",
                        position: (144, 11),
                       },
                      ],
                     },
                     to: String {
                      parts: [
                       Raw {
                        content: "deliantra",
                        position: (144, 20),
                       },
                      ],
                      position: (144, 19),
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "WorkingDirectory",
                        position: (145, 11),
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (145, 30),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "stateDir",
                         position: (145, 34),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                   recursive: false,
                   position: (140, 9),
                  },
                  Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "mkIf",
                     position: (147, 10),
                    },
                    arguments: [
                     Parentheses {
                      expression: BinaryOperation {
                       operator: EqualTo,
                       operands: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (147, 16),
                         },
                         attribute_path: AttributePath {
                          parts: [
                           Raw {
                            content: "stateDir",
                            position: (147, 20),
                           },
                          ],
                         },
                         default: None,
                        },
                        String {
                         parts: [
                          Raw {
                           content: "/var/lib/deliantra",
                           position: (147, 33),
                          },
                         ],
                         position: (147, 32),
                        },
                       ],
                       position: (147, 29),
                      },
                      position: (147, 15),
                     },
                     Map {
                      bindings: [
                       Binding {
                        from: AttributePath {
                         parts: [
                          Raw {
                           content: "StateDirectory",
                           position: (148, 11),
                          },
                         ],
                        },
                        to: String {
                         parts: [
                          Raw {
                           content: "deliantra",
                           position: (148, 29),
                          },
                         ],
                         position: (148, 28),
                        },
                       },
                      ],
                      recursive: false,
                      position: (147, 54),
                     },
                    ],
                   },
                   position: (147, 9),
                  },
                 ],
                 position: (139, 31),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "preStart",
                 position: (160, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "if [ ! -e \"",
                 position: (161, 1),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (161, 22),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "stateDir",
                     position: (161, 26),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "\"/bookarch ]; then\n  ",
                 position: (161, 35),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (162, 13),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "rsync",
                     position: (162, 18),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/rsync -a --chmod=u=rwX,go=rX \\\n    \"",
                 position: (162, 24),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (163, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "package",
                     position: (163, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/var/deliantra-server/\" \"",
                 position: (163, 28),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (163, 55),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "stateDir",
                     position: (163, 59),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/\"\nfi\n",
                 position: (163, 68),
                },
               ],
               position: (160, 18),
              },
             },
            ],
            recursive: false,
            position: (128, 41),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "networking",
              position: (168, 5),
             },
             Raw {
              content: "firewall",
              position: (168, 16),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (168, 27),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (168, 32),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "openFirewall",
                 position: (168, 36),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (169, 7),
                  },
                 ],
                },
                to: List {
                 elements: [
                  Variable {
                   identifier: "serverPort",
                   position: (169, 27),
                  },
                 ],
                 position: (169, 25),
                },
               },
              ],
              recursive: false,
              position: (168, 49),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (97, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (8, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}