---
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: "streams",
        position: (6, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "builtins",
        position: (6, 13),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "attrNames",
          position: (6, 22),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "config",
         position: (6, 32),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "services",
           position: (6, 39),
          },
          Raw {
           content: "liquidsoap",
           position: (6, 48),
          },
          Raw {
           content: "streams",
           position: (6, 59),
          },
         ],
        },
        default: None,
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "streamService",
        position: (8, 3),
       },
      ],
     },
     to: Function {
      argument: Simple {
       identifier: "name",
      },
      definition: LetIn {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "stream",
            position: (10, 9),
           },
          ],
         },
         to: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "builtins",
            position: (10, 18),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "getAttr",
              position: (10, 27),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Variable {
            identifier: "name",
            position: (10, 35),
           },
           PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (10, 40),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "services",
               position: (10, 47),
              },
              Raw {
               content: "liquidsoap",
               position: (10, 56),
              },
              Raw {
               content: "streams",
               position: (10, 67),
              },
             ],
            },
            default: None,
           },
          ],
         },
        },
       ],
       target: Map {
        bindings: [
         Inherit {
          from: None,
          attributes: [
           Raw {
            content: "name",
            position: (11, 15),
           },
          ],
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "value",
             position: (12, 7),
            },
           ],
          },
          to: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "after",
                position: (13, 9),
               },
              ],
             },
             to: List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "network-online.target",
                  position: (13, 20),
                 },
                ],
                position: (13, 19),
               },
               String {
                parts: [
                 Raw {
                  content: "sound.target",
                  position: (13, 44),
                 },
                ],
                position: (13, 43),
               },
              ],
              position: (13, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (14, 9),
               },
              ],
             },
             to: String {
              parts: [
               Interpolation {
                expression: Variable {
                 identifier: "name",
                 position: (14, 26),
                },
               },
               Raw {
                content: " liquidsoap stream",
                position: (14, 31),
               },
              ],
              position: (14, 23),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "wantedBy",
                position: (15, 9),
               },
              ],
             },
             to: List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "multi-user.target",
                  position: (15, 23),
                 },
                ],
                position: (15, 22),
               },
              ],
              position: (15, 20),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "path",
                position: (16, 9),
               },
              ],
             },
             to: List {
              elements: [
               PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (16, 18),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "wget",
                   position: (16, 23),
                  },
                 ],
                },
                default: None,
               },
              ],
              position: (16, 16),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "serviceConfig",
                position: (17, 9),
               },
              ],
             },
             to: Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "ExecStart",
                   position: (18, 11),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Interpolation {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (18, 26),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "liquidsoap",
                       position: (18, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/liquidsoap ",
                   position: (18, 42),
                  },
                  Interpolation {
                   expression: Variable {
                    identifier: "stream",
                    position: (18, 60),
                   },
                  },
                 ],
                 position: (18, 23),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "User",
                   position: (19, 11),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "liquidsoap",
                   position: (19, 19),
                  },
                 ],
                 position: (19, 18),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "LogsDirectory",
                   position: (20, 11),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "liquidsoap",
                   position: (20, 28),
                  },
                 ],
                 position: (20, 27),
                },
               },
              ],
              recursive: false,
              position: (17, 25),
             },
            },
           ],
           recursive: false,
           position: (12, 15),
          },
         },
        ],
        recursive: false,
        position: (11, 5),
       },
       position: (10, 5),
      },
      position: (9, 5),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (29, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (31, 5),
           },
           Raw {
            content: "liquidsoap",
            position: (31, 14),
           },
           Raw {
            content: "streams",
            position: (31, 25),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (31, 35),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (33, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Set of Liquidsoap streams to start,\none systemd service per stream.\n",
                 position: (35, 1),
                },
               ],
               position: (34, 9),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (39, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (39, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (41, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "myStream1",
                    position: (42, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/etc/liquidsoap/myStream1.liq",
                    position: (42, 22),
                   },
                  ],
                  position: (42, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "myStream2",
                    position: (43, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (43, 21),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "./myStream2.liq",
                      position: (43, 40),
                     },
                    ],
                    position: (43, 39),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "myStream3",
                    position: (44, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "out(playlist(\"/srv/music/\"))",
                    position: (44, 22),
                   },
                  ],
                  position: (44, 21),
                 },
                },
               ],
               recursive: false,
               position: (41, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (47, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (47, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "attrsOf",
                   position: (47, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                Parentheses {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (47, 29),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "either",
                      position: (47, 35),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (47, 42),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "path",
                       position: (47, 48),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (47, 53),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "str",
                       position: (47, 59),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                 position: (47, 28),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (31, 44),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (29, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (53, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (53, 12),
       },
       arguments: [
        Parentheses {
         expression: BinaryOperation {
          operator: NotEqualTo,
          operands: [
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "builtins",
              position: (53, 18),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "length",
                position: (53, 27),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Variable {
              identifier: "streams",
              position: (53, 34),
             },
            ],
           },
           Int {
            value: 0,
            position: (53, 45),
           },
          ],
          position: (53, 42),
         },
         position: (53, 17),
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (55, 5),
             },
             Raw {
              content: "users",
              position: (55, 11),
             },
             Raw {
              content: "liquidsoap",
              position: (55, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "uid",
                 position: (56, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (56, 13),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "ids",
                  position: (56, 20),
                 },
                 Raw {
                  content: "uids",
                  position: (56, 24),
                 },
                 Raw {
                  content: "liquidsoap",
                  position: (56, 29),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (57, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "liquidsoap",
                 position: (57, 16),
                },
               ],
               position: (57, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "extraGroups",
                 position: (58, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "audio",
                   position: (58, 24),
                  },
                 ],
                 position: (58, 23),
                },
               ],
               position: (58, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (59, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Liquidsoap streaming user",
                 position: (59, 22),
                },
               ],
               position: (59, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "home",
                 position: (60, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/var/lib/liquidsoap",
                 position: (60, 15),
                },
               ],
               position: (60, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "createHome",
                 position: (61, 7),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (61, 20),
              },
             },
            ],
            recursive: false,
            position: (55, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (64, 5),
             },
             Raw {
              content: "groups",
              position: (64, 11),
             },
             Raw {
              content: "liquidsoap",
              position: (64, 18),
             },
             Raw {
              content: "gid",
              position: (64, 29),
             },
            ],
           },
           to: PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (64, 35),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "ids",
               position: (64, 42),
              },
              Raw {
               content: "gids",
               position: (64, 46),
              },
              Raw {
               content: "liquidsoap",
               position: (64, 51),
              },
             ],
            },
            default: None,
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (66, 5),
             },
             Raw {
              content: "services",
              position: (66, 13),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "builtins",
              position: (66, 24),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "listToAttrs",
                position: (66, 33),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "map",
                position: (66, 47),
               },
               arguments: [
                Variable {
                 identifier: "streamService",
                 position: (66, 51),
                },
                Variable {
                 identifier: "streams",
                 position: (66, 65),
                },
               ],
              },
              position: (66, 45),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (53, 48),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (25, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}