---
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: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "hqplayerd",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "pkg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "hqplayerd",
         position: (7, 14),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "stateDir",
        position: (9, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "/var/lib/hqplayer",
        position: (9, 15),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configDir",
        position: (10, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "/etc/hqplayer",
        position: (10, 16),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (13, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (14, 5),
           },
           Raw {
            content: "hqplayerd",
            position: (14, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (15, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (15, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "HQPlayer Embedded",
                 position: (15, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "auth",
               position: (17, 7),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "username",
                  position: (18, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (18, 20),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (19, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (19, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "nullOr",
                         position: (19, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "types",
                        position: (19, 31),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "str",
                          position: (19, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (20, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "null",
                     position: (20, 21),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (21, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Username used for HQPlayer's WebUI.\n\nWithout this you will need to manually create the credentials after\nfirst start by going to http://your.ip/8088/auth\n",
                       position: (22, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (18, 29),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "password",
                  position: (29, 9),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "mkOption",
                 position: (29, 20),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "type",
                       position: (30, 11),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (30, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "nullOr",
                         position: (30, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "types",
                        position: (30, 31),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "str",
                          position: (30, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "default",
                       position: (31, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "null",
                     position: (31, 21),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "description",
                       position: (32, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Password used for HQPlayer's WebUI.\n\nWithout this you will need to manually create the credentials after\nfirst start by going to http://your.ip/8088/auth\n",
                       position: (33, 1),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (29, 29),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (17, 14),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "licenseFile",
               position: (41, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (41, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (42, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (42, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (42, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (42, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "path",
                       position: (42, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (43, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (43, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (44, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Path to the HQPlayer license key file.\n\nWithout this, the service will run in trial mode and restart every 30\nminutes.\n",
                    position: (45, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (41, 30),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "openFirewall",
               position: (52, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (52, 22),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (53, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (53, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (53, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (54, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (54, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (55, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Opens ports needed for the WebUI and controller API.\n",
                    position: (56, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (52, 31),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "config",
               position: (60, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (60, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (61, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (61, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nullOr",
                      position: (61, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (61, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "lines",
                       position: (61, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (62, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "null",
                  position: (62, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (63, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "HQplayer daemon configuration, written to /etc/hqplayer/hqplayerd.xml.\n\nRefer to share/doc/hqplayerd/readme.txt in the hqplayerd derivation for possible values.\n",
                    position: (64, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (60, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (14, 26),
         },
        ),
       ],
       recursive: false,
       position: (13, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (72, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (72, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (72, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (72, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "assertions",
              position: (73, 5),
             },
            ],
           },
           List {
            elements: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "assertion",
                   position: (75, 9),
                  },
                 ],
                },
                BinaryOperation {
                 operator: LogicalAnd,
                 operands: [
                  BinaryOperation {
                   operator: Implication,
                   operands: [
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (75, 22),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "auth",
                          position: (75, 26),
                         },
                         Raw {
                          content: "username",
                          position: (75, 31),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (75, 43),
                      },
                     ],
                     position: (75, 40),
                    },
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (75, 51),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "auth",
                          position: (75, 55),
                         },
                         Raw {
                          content: "password",
                          position: (75, 60),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (75, 72),
                      },
                     ],
                     position: (75, 69),
                    },
                   ],
                   position: (75, 48),
                  },
                  BinaryOperation {
                   operator: Implication,
                   operands: [
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (76, 22),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "auth",
                          position: (76, 26),
                         },
                         Raw {
                          content: "password",
                          position: (76, 31),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (76, 43),
                      },
                     ],
                     position: (76, 40),
                    },
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (76, 51),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "auth",
                          position: (76, 55),
                         },
                         Raw {
                          content: "username",
                          position: (76, 60),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (76, 72),
                      },
                     ],
                     position: (76, 69),
                    },
                   ],
                   position: (76, 48),
                  },
                 ],
                 position: (76, 18),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "message",
                   position: (77, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "You must set either both services.hqplayer.auth.username and password, or neither.",
                   position: (77, 20),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (74, 7),
             },
            ],
            position: (73, 18),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (81, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "etc",
                 position: (82, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "hqplayer/hqplayerd.xml",
                       position: (83, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (83, 36),
                  },
                  arguments: [
                   BinaryOperation {
                    operator: NotEqualTo,
                    operands: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (83, 42),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "config",
                         position: (83, 46),
                        },
                       ],
                      },
                      default: None,
                     },
                     Variable {
                      identifier: "null",
                      position: (83, 56),
                     },
                    ],
                    position: (83, 53),
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "source",
                         position: (83, 64),
                        },
                       ],
                      },
                      FunctionApplication {
                       function: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (83, 73),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "writeText",
                           position: (83, 78),
                          },
                         ],
                        },
                        default: None,
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: "hqplayerd.xml",
                           position: (83, 89),
                          },
                         ],
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (83, 104),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "config",
                            position: (83, 108),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (83, 62),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "hqplayer/hqplayerd4-key.xml",
                       position: (84, 10),
                      },
                     ],
                    },
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (84, 41),
                  },
                  arguments: [
                   BinaryOperation {
                    operator: NotEqualTo,
                    operands: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (84, 47),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "licenseFile",
                         position: (84, 51),
                        },
                       ],
                      },
                      default: None,
                     },
                     Variable {
                      identifier: "null",
                      position: (84, 66),
                     },
                    ],
                    position: (84, 63),
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "source",
                         position: (84, 74),
                        },
                       ],
                      },
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (84, 83),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "licenseFile",
                          position: (84, 87),
                         },
                        ],
                       },
                       default: None,
                      },
                     ),
                    ],
                    recursive: false,
                    position: (84, 72),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Expression {
                    expression: String {
                     parts: [
                      Raw {
                       content: "modules-load.d/taudio2.conf",
                       position: (85, 10),
                      },
                     ],
                    },
                   },
                   Raw {
                    content: "source",
                    position: (85, 39),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "pkg",
                     position: (85, 51),
                    },
                   },
                   Raw {
                    content: "/etc/modules-load.d/taudio2.conf",
                    position: (85, 55),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (82, 13),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "systemPackages",
                 position: (87, 7),
                },
               ],
              },
              List {
               elements: [
                Variable {
                 identifier: "pkg",
                 position: (87, 26),
                },
               ],
               position: (87, 24),
              },
             ),
            ],
            recursive: false,
            position: (81, 19),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "networking",
              position: (90, 5),
             },
             Raw {
              content: "firewall",
              position: (90, 16),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (90, 27),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (90, 32),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "openFirewall",
                 position: (90, 36),
                },
               ],
              },
              default: None,
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "allowedTCPPorts",
                   position: (91, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  Int {
                   value: 8088,
                   position: (91, 27),
                  },
                  Int {
                   value: 4321,
                   position: (91, 32),
                  },
                 ],
                 position: (91, 25),
                },
               ),
              ],
              recursive: false,
              position: (90, 49),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (94, 5),
             },
             Raw {
              content: "udev",
              position: (94, 14),
             },
             Raw {
              content: "packages",
              position: (94, 19),
             },
            ],
           },
           List {
            elements: [
             Variable {
              identifier: "pkg",
              position: (94, 32),
             },
            ],
            position: (94, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (96, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "tmpfiles",
                 position: (97, 7),
                },
                Raw {
                 content: "rules",
                 position: (97, 16),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "d ",
                   position: (98, 10),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "configDir",
                    position: (98, 14),
                   },
                  },
                  Raw {
                   content: "      0755 hqplayer hqplayer - -",
                   position: (98, 24),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "d ",
                   position: (99, 10),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "stateDir",
                    position: (99, 14),
                   },
                  },
                  Raw {
                   content: "       0755 hqplayer hqplayer - -",
                   position: (99, 23),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "d ",
                   position: (100, 10),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "stateDir",
                    position: (100, 14),
                   },
                  },
                  Raw {
                   content: "/home  0755 hqplayer hqplayer - -",
                   position: (100, 23),
                  },
                 ],
                },
               ],
               position: (97, 24),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "packages",
                 position: (103, 7),
                },
               ],
              },
              List {
               elements: [
                Variable {
                 identifier: "pkg",
                 position: (103, 20),
                },
               ],
               position: (103, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "services",
                 position: (105, 7),
                },
                Raw {
                 content: "hqplayerd",
                 position: (105, 16),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "wantedBy",
                    position: (106, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "multi-user.target",
                      position: (106, 23),
                     },
                    ],
                   },
                  ],
                  position: (106, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "after",
                    position: (107, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "systemd-tmpfiles-setup.service",
                      position: (107, 20),
                     },
                    ],
                   },
                  ],
                  position: (107, 17),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "environment",
                    position: (109, 9),
                   },
                   Raw {
                    content: "HOME",
                    position: (109, 21),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "stateDir",
                     position: (109, 31),
                    },
                   },
                   Raw {
                    content: "/home",
                    position: (109, 40),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "unitConfig",
                    position: (111, 9),
                   },
                   Raw {
                    content: "ConditionPathExists",
                    position: (111, 20),
                   },
                  ],
                 },
                 List {
                  elements: [
                   Variable {
                    identifier: "configDir",
                    position: (111, 44),
                   },
                   Variable {
                    identifier: "stateDir",
                    position: (111, 54),
                   },
                  ],
                  position: (111, 42),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "restartTriggers",
                    position: (113, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "optionals",
                   position: (113, 27),
                  },
                  arguments: [
                   BinaryOperation {
                    operator: NotEqualTo,
                    operands: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (113, 38),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "config",
                         position: (113, 42),
                        },
                       ],
                      },
                      default: None,
                     },
                     Variable {
                      identifier: "null",
                      position: (113, 52),
                     },
                    ],
                    position: (113, 49),
                   },
                   List {
                    elements: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "config",
                       position: (113, 60),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "environment",
                         position: (113, 67),
                        },
                        Raw {
                         content: "etc",
                         position: (113, 79),
                        },
                        Expression {
                         expression: String {
                          parts: [
                           Raw {
                            content: "hqplayer/hqplayerd.xml",
                            position: (113, 84),
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "source",
                         position: (113, 108),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                    position: (113, 58),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "preStart",
                    position: (115, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Addition,
                  operands: [
                   String {
                    parts: [
                     Raw {
                      content: "cp -r \"",
                      position: (116, 1),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "pkg",
                       position: (116, 20),
                      },
                     },
                     Raw {
                      content: "/var/lib/hqplayer/web\" \"",
                      position: (116, 24),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "stateDir",
                       position: (116, 50),
                      },
                     },
                     Raw {
                      content: "\"\nchmod -R u+wX \"",
                      position: (116, 59),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "stateDir",
                       position: (117, 28),
                      },
                     },
                     Raw {
                      content: "/web\"\n\nif [ ! -f \"",
                      position: (117, 37),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "configDir",
                       position: (119, 24),
                      },
                     },
                     Raw {
                      content: "/hqplayerd.xml\" ]; then\n  echo \"creating initial config file\"\n  install -m 0644 \"",
                      position: (119, 34),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "pkg",
                       position: (121, 32),
                      },
                     },
                     Raw {
                      content: "/etc/hqplayer/hqplayerd.xml\" \"",
                      position: (121, 36),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "configDir",
                       position: (121, 68),
                      },
                     },
                     Raw {
                      content: "/hqplayerd.xml\"\nfi\n",
                      position: (121, 78),
                     },
                    ],
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "optionalString",
                     position: (123, 14),
                    },
                    arguments: [
                     BinaryOperation {
                      operator: LogicalAnd,
                      operands: [
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (123, 30),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "auth",
                             position: (123, 34),
                            },
                            Raw {
                             content: "username",
                             position: (123, 39),
                            },
                           ],
                          },
                          default: None,
                         },
                         Variable {
                          identifier: "null",
                          position: (123, 51),
                         },
                        ],
                        position: (123, 48),
                       },
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (123, 59),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "auth",
                             position: (123, 63),
                            },
                            Raw {
                             content: "password",
                             position: (123, 68),
                            },
                           ],
                          },
                          default: None,
                         },
                         Variable {
                          identifier: "null",
                          position: (123, 80),
                         },
                        ],
                        position: (123, 77),
                       },
                      ],
                      position: (123, 56),
                     },
                     String {
                      parts: [
                       Raw {
                        content: "",
                        position: (124, 1),
                       },
                       Expression {
                        expression: Variable {
                         identifier: "pkg",
                         position: (124, 13),
                        },
                       },
                       Raw {
                        content: "/bin/hqplayerd -s ",
                        position: (124, 17),
                       },
                       Expression {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (124, 37),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "auth",
                            position: (124, 41),
                           },
                           Raw {
                            content: "username",
                            position: (124, 46),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: " ",
                        position: (124, 55),
                       },
                       Expression {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (124, 58),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "auth",
                            position: (124, 62),
                           },
                           Raw {
                            content: "password",
                            position: (124, 67),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "\n",
                        position: (124, 76),
                       },
                      ],
                     },
                    ],
                   },
                  ],
                  position: (123, 12),
                 },
                ),
               ],
               recursive: false,
               position: (105, 28),
              },
             ),
            ],
            recursive: false,
            position: (96, 15),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (129, 5),
             },
             Raw {
              content: "groups",
              position: (129, 11),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "hqplayer",
                 position: (130, 7),
                },
                Raw {
                 content: "gid",
                 position: (130, 16),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (130, 22),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "ids",
                  position: (130, 29),
                 },
                 Raw {
                  content: "gids",
                  position: (130, 33),
                 },
                 Raw {
                  content: "hqplayer",
                  position: (130, 38),
                 },
                ],
               },
               default: None,
              },
             ),
            ],
            recursive: false,
            position: (129, 20),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (133, 5),
             },
             Raw {
              content: "users",
              position: (133, 11),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "hqplayer",
                 position: (134, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (135, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "hqplayer daemon user",
                    position: (135, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "extraGroups",
                    position: (136, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "audio",
                      position: (136, 26),
                     },
                    ],
                   },
                  ],
                  position: (136, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "group",
                    position: (137, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "hqplayer",
                    position: (137, 18),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "uid",
                    position: (138, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "config",
                   position: (138, 15),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "ids",
                     position: (138, 22),
                    },
                    Raw {
                     content: "uids",
                     position: (138, 26),
                    },
                    Raw {
                     content: "hqplayer",
                     position: (138, 31),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (134, 18),
              },
             ),
            ],
            recursive: false,
            position: (133, 19),
           },
          ),
         ],
         recursive: false,
         position: (72, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (12, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}