---
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: "pkgs",
   position: (3, 6),
  },
  target: With {
   expression: Variable {
    identifier: "lib",
    position: (4, 6),
   },
   target: LetIn {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "uid",
         position: (7, 3),
        },
       ],
      },
      PropertyAccess {
       expression: Variable {
        identifier: "config",
        position: (7, 9),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "ids",
          position: (7, 16),
         },
         Raw {
          content: "uids",
          position: (7, 20),
         },
         Raw {
          content: "mopidy",
          position: (7, 25),
         },
        ],
       },
       default: None,
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "gid",
         position: (8, 3),
        },
       ],
      },
      PropertyAccess {
       expression: Variable {
        identifier: "config",
        position: (8, 9),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "ids",
          position: (8, 16),
         },
         Raw {
          content: "gids",
          position: (8, 20),
         },
         Raw {
          content: "mopidy",
          position: (8, 25),
         },
        ],
       },
       default: None,
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "cfg",
         position: (9, 3),
        },
       ],
      },
      PropertyAccess {
       expression: Variable {
        identifier: "config",
        position: (9, 9),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "services",
          position: (9, 16),
         },
         Raw {
          content: "mopidy",
          position: (9, 25),
         },
        ],
       },
       default: None,
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "mopidyConf",
         position: (11, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "writeText",
        position: (11, 16),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "mopidy.conf",
           position: (11, 27),
          },
         ],
        },
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (11, 40),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "configuration",
            position: (11, 44),
           },
          ],
         },
         default: None,
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "mopidyEnv",
         position: (13, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "buildEnv",
        position: (13, 15),
       },
       arguments: [
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "name",
              position: (14, 5),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "mopidy-with-extensions-",
              position: (14, 13),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "mopidy",
                position: (14, 38),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "version",
                  position: (14, 45),
                 },
                ],
               },
               default: None,
              },
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "paths",
              position: (15, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "closePropagation",
             position: (15, 13),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (15, 30),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "extensionPackages",
                 position: (15, 34),
                },
               ],
              },
              default: None,
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "pathsToLink",
              position: (16, 5),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "/",
                position: (16, 22),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "mopidyPackages",
                  position: (16, 25),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "python",
                    position: (16, 40),
                   },
                   Raw {
                    content: "sitePackages",
                    position: (16, 47),
                   },
                  ],
                 },
                 default: None,
                },
               },
              ],
             },
            ],
            position: (16, 19),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "buildInputs",
              position: (17, 5),
             },
            ],
           },
           List {
            elements: [
             Variable {
              identifier: "makeWrapper",
              position: (17, 21),
             },
            ],
            position: (17, 19),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "postBuild",
              position: (18, 5),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "makeWrapper ",
              position: (19, 1),
             },
             Expression {
              expression: Variable {
               identifier: "mopidy",
               position: (19, 21),
              },
             },
             Raw {
              content: "/bin/mopidy $out/bin/mopidy \\\n  --prefix PYTHONPATH : $out/",
              position: (19, 28),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "mopidyPackages",
                position: (20, 38),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "python",
                  position: (20, 53),
                 },
                 Raw {
                  content: "sitePackages",
                  position: (20, 60),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "\n",
              position: (20, 73),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (13, 24),
        },
       ],
      },
     ),
    ],
    target: Map {
     bindings: [
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "options",
          position: (25, 3),
         },
        ],
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "services",
             position: (27, 5),
            },
            Raw {
             content: "mopidy",
             position: (27, 14),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "enable",
                position: (29, 7),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkEnableOption",
               position: (29, 16),
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: "Mopidy, a music player daemon",
                  position: (29, 32),
                 },
                ],
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "dataDir",
                position: (31, 7),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (31, 17),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (32, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "/var/lib/mopidy",
                     position: (32, 20),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (33, 9),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (33, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "str",
                      position: (33, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (34, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "The directory where Mopidy stores its state.\n",
                     position: (35, 1),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (31, 26),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "extensionPackages",
                position: (39, 7),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (39, 27),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (40, 9),
                    },
                   ],
                  },
                  List {
                   elements: [],
                   position: (40, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (41, 9),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (41, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "listOf",
                       position: (41, 22),
                      },
                     ],
                    },
                    default: None,
                   },
                   arguments: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (41, 29),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (41, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "example",
                     position: (42, 9),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "literalExpression",
                    position: (42, 19),
                   },
                   arguments: [
                    String {
                     parts: [
                      Raw {
                       content: "[ pkgs.mopidy-spotify ]",
                       position: (42, 38),
                      },
                     ],
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (43, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Mopidy extensions that should be loaded by the service.\n",
                     position: (44, 1),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (39, 36),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "configuration",
                position: (48, 7),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (48, 23),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (49, 9),
                    },
                   ],
                  },
                  String {
                   parts: [],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (50, 9),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (50, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "lines",
                      position: (50, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (51, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "The configuration that Mopidy should use.\n",
                     position: (52, 1),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (48, 32),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "extraConfigFiles",
                position: (56, 7),
               },
              ],
             },
             FunctionApplication {
              function: Variable {
               identifier: "mkOption",
               position: (56, 26),
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "default",
                     position: (57, 9),
                    },
                   ],
                  },
                  List {
                   elements: [],
                   position: (57, 19),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "type",
                     position: (58, 9),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (58, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "listOf",
                       position: (58, 22),
                      },
                     ],
                    },
                    default: None,
                   },
                   arguments: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (58, 29),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "str",
                        position: (58, 35),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "description",
                     position: (59, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "Extra config file read by Mopidy when the service starts.\nLater files in the list overrides earlier configuration.\n",
                     position: (60, 1),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (56, 35),
               },
              ],
             },
            ),
           ],
           recursive: false,
           position: (27, 23),
          },
         ),
        ],
        recursive: false,
        position: (25, 13),
       },
      ),
      KeyValue(
       AttributePath {
        attributes: [
         Raw {
          content: "config",
          position: (71, 3),
         },
        ],
       },
       FunctionApplication {
        function: Variable {
         identifier: "mkIf",
         position: (71, 12),
        },
        arguments: [
         PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (71, 17),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "enable",
             position: (71, 21),
            },
           ],
          },
          default: None,
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (73, 5),
              },
              Raw {
               content: "tmpfiles",
               position: (73, 13),
              },
              Raw {
               content: "rules",
               position: (73, 22),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "d '",
                 position: (74, 8),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (74, 13),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "dataDir",
                     position: (74, 17),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "' - mopidy mopidy - -",
                 position: (74, 25),
                },
               ],
              },
             ],
             position: (73, 30),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (77, 5),
              },
              Raw {
               content: "services",
               position: (77, 13),
              },
              Raw {
               content: "mopidy",
               position: (77, 22),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "wantedBy",
                  position: (78, 7),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "multi-user.target",
                    position: (78, 21),
                   },
                  ],
                 },
                ],
                position: (78, 18),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "after",
                  position: (79, 7),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "network.target",
                    position: (79, 18),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "sound.target",
                    position: (79, 35),
                   },
                  ],
                 },
                ],
                position: (79, 15),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (80, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "mopidy music player daemon",
                  position: (80, 22),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "serviceConfig",
                  position: (81, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ExecStart",
                     position: (82, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Expression {
                     expression: Variable {
                      identifier: "mopidyEnv",
                      position: (82, 24),
                     },
                    },
                    Raw {
                     content: "/bin/mopidy --config ",
                     position: (82, 34),
                    },
                    Expression {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "concatStringsSep",
                       position: (82, 57),
                      },
                      arguments: [
                       String {
                        parts: [
                         Raw {
                          content: ":",
                          position: (82, 75),
                         },
                        ],
                       },
                       BinaryOperation {
                        operator: Concatenation,
                        operands: [
                         List {
                          elements: [
                           Variable {
                            identifier: "mopidyConf",
                            position: (82, 80),
                           },
                          ],
                          position: (82, 79),
                         },
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (82, 95),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "extraConfigFiles",
                             position: (82, 99),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                        position: (82, 92),
                       },
                      ],
                     },
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "User",
                     position: (83, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "mopidy",
                     position: (83, 17),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (81, 23),
               },
              ),
             ],
             recursive: false,
             position: (77, 31),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (87, 5),
              },
              Raw {
               content: "services",
               position: (87, 13),
              },
              Raw {
               content: "mopidy-scan",
               position: (87, 22),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (88, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "mopidy local files scanner",
                  position: (88, 22),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "serviceConfig",
                  position: (89, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ExecStart",
                     position: (90, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Expression {
                     expression: Variable {
                      identifier: "mopidyEnv",
                      position: (90, 24),
                     },
                    },
                    Raw {
                     content: "/bin/mopidy --config ",
                     position: (90, 34),
                    },
                    Expression {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "concatStringsSep",
                       position: (90, 57),
                      },
                      arguments: [
                       String {
                        parts: [
                         Raw {
                          content: ":",
                          position: (90, 75),
                         },
                        ],
                       },
                       BinaryOperation {
                        operator: Concatenation,
                        operands: [
                         List {
                          elements: [
                           Variable {
                            identifier: "mopidyConf",
                            position: (90, 80),
                           },
                          ],
                          position: (90, 79),
                         },
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (90, 95),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "extraConfigFiles",
                             position: (90, 99),
                            },
                           ],
                          },
                          default: None,
                         },
                        ],
                        position: (90, 92),
                       },
                      ],
                     },
                    },
                    Raw {
                     content: " local scan",
                     position: (90, 117),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "User",
                     position: (91, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "mopidy",
                     position: (91, 17),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "Type",
                     position: (92, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "oneshot",
                     position: (92, 17),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (89, 23),
               },
              ),
             ],
             recursive: false,
             position: (87, 36),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "users",
               position: (96, 5),
              },
              Raw {
               content: "users",
               position: (96, 11),
              },
              Raw {
               content: "mopidy",
               position: (96, 17),
              },
             ],
            },
            Map {
             bindings: [
              Inherit(
               None,
               [
                Raw {
                 content: "uid",
                 position: (97, 15),
                },
               ],
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "group",
                  position: (98, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "mopidy",
                  position: (98, 16),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "extraGroups",
                  position: (99, 7),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "audio",
                    position: (99, 24),
                   },
                  ],
                 },
                ],
                position: (99, 21),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (100, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "Mopidy daemon user",
                  position: (100, 22),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "home",
                  position: (101, 7),
                 },
                ],
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (101, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "dataDir",
                   position: (101, 18),
                  },
                 ],
                },
                default: None,
               },
              ),
             ],
             recursive: false,
             position: (96, 26),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "users",
               position: (104, 5),
              },
              Raw {
               content: "groups",
               position: (104, 11),
              },
              Raw {
               content: "mopidy",
               position: (104, 18),
              },
              Raw {
               content: "gid",
               position: (104, 25),
              },
             ],
            },
            Variable {
             identifier: "gid",
             position: (104, 31),
            },
           ),
          ],
          recursive: false,
          position: (71, 28),
         },
        ],
       },
      ),
     ],
     recursive: false,
     position: (23, 4),
    },
    position: (6, 1),
   },
   position: (4, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}