---
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: (5, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (5, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "hardware",
         position: (5, 16),
        },
        Raw {
         content: "xone",
         position: (5, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (8, 3),
        },
        Raw {
         content: "hardware",
         position: (8, 11),
        },
        Raw {
         content: "xone",
         position: (8, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (9, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (9, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "the xone driver for Xbox One and Xbobx Series X|S accessories",
             },
            ],
            position: (9, 29),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (8, 27),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (12, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (12, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (12, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (12, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "boot",
              position: (13, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "blacklistedKernelModules",
                 position: (14, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "xpad",
                  },
                 ],
                 position: (14, 36),
                },
                String {
                 parts: [
                  Raw {
                   content: "mt76x2u",
                  },
                 ],
                 position: (14, 43),
                },
               ],
               position: (14, 34),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "extraModulePackages",
                 position: (15, 7),
                },
               ],
              },
              With {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "config",
                 position: (15, 34),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "boot",
                   position: (15, 41),
                  },
                  Raw {
                   content: "kernelPackages",
                   position: (15, 46),
                  },
                 ],
                },
                default: None,
               },
               target: List {
                elements: [
                 Variable {
                  identifier: "xone",
                  position: (15, 64),
                 },
                ],
                position: (15, 62),
               },
               position: (15, 29),
              },
             ),
            ],
            recursive: false,
            position: (13, 12),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "hardware",
              position: (17, 5),
             },
             Raw {
              content: "firmware",
              position: (17, 14),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (17, 27),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "xow_dongle-firmware",
                 position: (17, 32),
                },
               ],
              },
              default: None,
             },
            ],
            position: (17, 25),
           },
          ),
         ],
         recursive: false,
         position: (12, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (20, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "maintainers",
            position: (21, 5),
           },
          ],
         },
         With {
          expression: Variable {
           identifier: "maintainers",
           position: (21, 24),
          },
          target: List {
           elements: [
            Variable {
             identifier: "rhysmdnz",
             position: (21, 39),
            },
           ],
           position: (21, 37),
          },
          position: (21, 19),
         },
        ),
       ],
       recursive: false,
       position: (20, 10),
      },
     ),
    ],
    recursive: false,
    position: (7, 1),
   },
   position: (4, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}