---
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: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "hardware",
         position: (7, 16),
        },
        Raw {
         content: "facetimehd",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "kernelPackages",
        position: (9, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (9, 20),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "boot",
         position: (9, 27),
        },
        Raw {
         content: "kernelPackages",
         position: (9, 32),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (15, 3),
        },
        Raw {
         content: "hardware",
         position: (15, 11),
        },
        Raw {
         content: "facetimehd",
         position: (15, 20),
        },
        Raw {
         content: "enable",
         position: (15, 31),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkEnableOption",
        position: (15, 40),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "facetimehd kernel module",
           position: (15, 56),
          },
         ],
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (17, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (17, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (17, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (17, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "assertions",
              position: (19, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "singleton",
             position: (19, 18),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "assertion",
                   position: (20, 7),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "versionAtLeast",
                  position: (20, 19),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "kernelPackages",
                    position: (20, 34),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "kernel",
                      position: (20, 49),
                     },
                     Raw {
                      content: "version",
                      position: (20, 56),
                     },
                    ],
                   },
                   default: None,
                  },
                  String {
                   parts: [
                    Raw {
                     content: "3.19",
                     position: (20, 65),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "message",
                   position: (21, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "facetimehd is not supported for kernels older than 3.19",
                   position: (21, 18),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (19, 28),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "boot",
              position: (24, 5),
             },
             Raw {
              content: "kernelModules",
              position: (24, 10),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "facetimehd",
                position: (24, 29),
               },
              ],
             },
            ],
            position: (24, 26),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "boot",
              position: (26, 5),
             },
             Raw {
              content: "blacklistedKernelModules",
              position: (26, 10),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "bdc_pci",
                position: (26, 40),
               },
              ],
             },
            ],
            position: (26, 37),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "boot",
              position: (28, 5),
             },
             Raw {
              content: "extraModulePackages",
              position: (28, 10),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "kernelPackages",
               position: (28, 34),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "facetimehd",
                 position: (28, 49),
                },
               ],
              },
              default: None,
             },
            ],
            position: (28, 32),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "hardware",
              position: (30, 5),
             },
             Raw {
              content: "firmware",
              position: (30, 14),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (30, 27),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "facetimehd-firmware",
                 position: (30, 32),
                },
               ],
              },
              default: None,
             },
            ],
            position: (30, 25),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "powerManagement",
              position: (33, 5),
             },
             Raw {
              content: "powerDownCommands",
              position: (33, 21),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "",
              position: (34, 1),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (34, 9),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "kmod",
                  position: (34, 14),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/lsmod | ",
              position: (34, 19),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (34, 34),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "gnugrep",
                  position: (34, 39),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/grep -q \"^facetimehd\" && ",
              position: (34, 47),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (34, 79),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "kmod",
                  position: (34, 84),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/rmmod -f -v facetimehd\n",
              position: (34, 89),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "powerManagement",
              position: (38, 5),
             },
             Raw {
              content: "resumeCommands",
              position: (38, 21),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "",
              position: (39, 1),
             },
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (39, 9),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "kmod",
                  position: (39, 14),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/modprobe -v facetimehd\n",
              position: (39, 19),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (17, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (13, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}