---
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: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "tiddlywiki",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "listenParams",
        position: (8, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: Variable {
       identifier: "concatStrings",
       position: (8, 18),
      },
      arguments: [
       Parentheses {
        expression: FunctionApplication {
         function: Variable {
          identifier: "mapAttrsToList",
          position: (8, 33),
         },
         arguments: [
          Parentheses {
           expression: Function {
            argument: Simple {
             identifier: "n",
            },
            definition: Function {
             argument: Simple {
              identifier: "v",
             },
             definition: String {
              parts: [
               Raw {
                content: " '",
                position: (8, 56),
               },
               Expression {
                expression: Variable {
                 identifier: "n",
                 position: (8, 60),
                },
               },
               Raw {
                content: "=",
                position: (8, 62),
               },
               Expression {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "toString",
                  position: (8, 65),
                 },
                 arguments: [
                  Variable {
                   identifier: "v",
                   position: (8, 74),
                  },
                 ],
                },
               },
               Raw {
                content: "' ",
                position: (8, 76),
               },
              ],
              position: (8, 55),
             },
             position: (8, 52),
            },
            position: (8, 49),
           },
           position: (8, 48),
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (8, 81),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "listenOptions",
              position: (8, 85),
             },
            ],
           },
           default: None,
          },
         ],
        },
        position: (8, 32),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "exe",
        position: (9, 3),
       },
      ],
     },
     to: String {
      parts: [
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "pkgs",
          position: (9, 12),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "nodePackages",
            position: (9, 17),
           },
           Raw {
            content: "tiddlywiki",
            position: (9, 30),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: "/lib/node_modules/.bin/tiddlywiki",
        position: (9, 41),
       },
      ],
      position: (9, 9),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "name",
        position: (10, 3),
       },
      ],
     },
     to: String {
      parts: [
       Raw {
        content: "tiddlywiki",
        position: (10, 11),
       },
      ],
      position: (10, 10),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "dataDir",
        position: (11, 3),
       },
      ],
     },
     to: BinaryOperation {
      operator: Addition,
      operands: [
       String {
        parts: [
         Raw {
          content: "/var/lib/",
          position: (11, 14),
         },
        ],
        position: (11, 13),
       },
       Variable {
        identifier: "name",
        position: (11, 27),
       },
      ],
      position: (11, 25),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (15, 3),
        },
        Raw {
         content: "services",
         position: (15, 11),
        },
        Raw {
         content: "tiddlywiki",
         position: (15, 20),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (17, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (17, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "TiddlyWiki nodejs server",
              position: (17, 30),
             },
            ],
            position: (17, 29),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "listenOptions",
            position: (19, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (19, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (20, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (20, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "attrs",
                  position: (20, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (21, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (21, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (22, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "credentials",
                    position: (23, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "../credentials.csv",
                    position: (23, 24),
                   },
                  ],
                  position: (23, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "readers",
                    position: (24, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "(authenticated)",
                    position: (24, 18),
                   },
                  ],
                  position: (24, 17),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "port",
                    position: (25, 9),
                   },
                  ],
                 },
                 to: Int {
                  value: 3456,
                  position: (25, 16),
                 },
                },
               ],
               recursive: false,
               position: (22, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (27, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Parameters passed to <literal>--listen</literal> command.\nRefer to <link xlink:href=\"https://tiddlywiki.com/#WebServer\"/>\nfor details on supported values.\n",
                 position: (28, 1),
                },
               ],
               position: (27, 21),
              },
             },
            ],
            recursive: false,
            position: (19, 30),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (15, 33),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (35, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (35, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (35, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (35, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (36, 5),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "services",
                 position: (37, 7),
                },
                Raw {
                 content: "tiddlywiki",
                 position: (37, 16),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (38, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "TiddlyWiki nodejs server",
                    position: (38, 24),
                   },
                  ],
                  position: (38, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "after",
                    position: (39, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "network.target",
                      position: (39, 20),
                     },
                    ],
                    position: (39, 19),
                   },
                  ],
                  position: (39, 17),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "wantedBy",
                    position: (40, 9),
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "multi-user.target",
                      position: (40, 23),
                     },
                    ],
                    position: (40, 22),
                   },
                  ],
                  position: (40, 20),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "serviceConfig",
                    position: (41, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "Type",
                       position: (42, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "simple",
                       position: (42, 19),
                      },
                     ],
                     position: (42, 18),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "Restart",
                       position: (43, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "on-failure",
                       position: (43, 22),
                      },
                     ],
                     position: (43, 21),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "DynamicUser",
                       position: (44, 11),
                      },
                     ],
                    },
                    to: Variable {
                     identifier: "true",
                     position: (44, 25),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "StateDirectory",
                       position: (45, 11),
                      },
                     ],
                    },
                    to: Variable {
                     identifier: "name",
                     position: (45, 28),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "ExecStartPre",
                       position: (46, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "-",
                       position: (46, 27),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "exe",
                        position: (46, 30),
                       },
                      },
                      Raw {
                       content: " ",
                       position: (46, 34),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "dataDir",
                        position: (46, 37),
                       },
                      },
                      Raw {
                       content: " --init server",
                       position: (46, 45),
                      },
                     ],
                     position: (46, 26),
                    },
                   },
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "ExecStart",
                       position: (47, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Expression {
                       expression: Variable {
                        identifier: "exe",
                        position: (47, 26),
                       },
                      },
                      Raw {
                       content: " ",
                       position: (47, 30),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "dataDir",
                        position: (47, 33),
                       },
                      },
                      Raw {
                       content: " --listen ",
                       position: (47, 41),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "listenParams",
                        position: (47, 53),
                       },
                      },
                     ],
                     position: (47, 23),
                    },
                   },
                  ],
                  recursive: false,
                  position: (41, 25),
                 },
                },
               ],
               recursive: false,
               position: (37, 29),
              },
             },
            ],
            recursive: false,
            position: (36, 15),
           },
          },
         ],
         recursive: false,
         position: (35, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (13, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}