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