---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "options",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   Inherit(
    Some(
     Variable {
      identifier: "lib",
      position: (4, 12),
     },
    ),
    [
     Raw {
      content: "literalExpression",
      position: (4, 17),
     },
     Raw {
      content: "mkOption",
      position: (4, 35),
     },
     Raw {
      content: "mkEnableOption",
      position: (4, 44),
     },
     Raw {
      content: "types",
      position: (4, 59),
     },
     Raw {
      content: "mkIf",
      position: (4, 65),
     },
     Raw {
      content: "mkMerge",
      position: (4, 70),
     },
     Raw {
      content: "optional",
      position: (4, 78),
     },
     Raw {
      content: "versionOlder",
      position: (4, 87),
     },
    ],
   ),
   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: "system76",
        position: (5, 25),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "opt",
       position: (6, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "options",
      position: (6, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "hardware",
        position: (6, 17),
       },
       Raw {
        content: "system76",
        position: (6, 26),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "kpkgs",
       position: (8, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (8, 11),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "boot",
        position: (8, 18),
       },
       Raw {
        content: "kernelPackages",
        position: (8, 23),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "modules",
       position: (9, 3),
      },
     ],
    },
    BinaryOperation {
     operator: Concatenation,
     operands: [
      List {
       elements: [
        String {
         parts: [
          Raw {
           content: "system76",
           position: (9, 16),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "system76-io",
           position: (9, 27),
          },
         ],
        },
       ],
       position: (9, 13),
      },
      FunctionApplication {
       function: Variable {
        identifier: "optional",
        position: (9, 46),
       },
       arguments: [
        FunctionApplication {
         function: Variable {
          identifier: "versionOlder",
          position: (9, 56),
         },
         arguments: [
          PropertyAccess {
           expression: Variable {
            identifier: "kpkgs",
            position: (9, 69),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "kernel",
              position: (9, 75),
             },
             Raw {
              content: "version",
              position: (9, 82),
             },
            ],
           },
           default: None,
          },
          String {
           parts: [
            Raw {
             content: "5.5",
             position: (9, 91),
            },
           ],
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "system76-acpi",
           position: (9, 98),
          },
         ],
        },
       ],
      },
     ],
     position: (9, 42),
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "modulePackages",
       position: (10, 3),
      },
     ],
    },
    FunctionApplication {
     function: Variable {
      identifier: "map",
      position: (10, 20),
     },
     arguments: [
      Function {
       argument: Some(
        "m",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: PropertyAccess {
        expression: Variable {
         identifier: "kpkgs",
         position: (10, 28),
        },
        attribute_path: AttributePath {
         attributes: [
          Expression {
           expression: Variable {
            identifier: "m",
            position: (10, 36),
           },
          },
         ],
        },
        default: None,
       },
       position: (10, 25),
      },
      Variable {
       identifier: "modules",
       position: (10, 40),
      },
     ],
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "moduleConfig",
       position: (11, 3),
      },
     ],
    },
    FunctionApplication {
     function: Variable {
      identifier: "mkIf",
      position: (11, 18),
     },
     arguments: [
      PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (11, 23),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "kernel-modules",
          position: (11, 27),
         },
         Raw {
          content: "enable",
          position: (11, 42),
         },
        ],
       },
       default: None,
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "boot",
            position: (12, 5),
           },
           Raw {
            content: "extraModulePackages",
            position: (12, 10),
           },
          ],
         },
         Variable {
          identifier: "modulePackages",
          position: (12, 32),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "boot",
            position: (14, 5),
           },
           Raw {
            content: "kernelModules",
            position: (14, 10),
           },
          ],
         },
         Variable {
          identifier: "modules",
          position: (14, 26),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (16, 5),
           },
           Raw {
            content: "udev",
            position: (16, 14),
           },
           Raw {
            content: "packages",
            position: (16, 19),
           },
          ],
         },
         Variable {
          identifier: "modulePackages",
          position: (16, 30),
         },
        ),
       ],
       recursive: false,
       position: (11, 49),
      },
     ],
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "firmware-pkg",
       position: (19, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "pkgs",
      position: (19, 18),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "system76-firmware",
        position: (19, 23),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "firmwareConfig",
       position: (20, 3),
      },
     ],
    },
    FunctionApplication {
     function: Variable {
      identifier: "mkIf",
      position: (20, 20),
     },
     arguments: [
      PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (20, 25),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "firmware-daemon",
          position: (20, 29),
         },
         Raw {
          content: "enable",
          position: (20, 45),
         },
        ],
       },
       default: None,
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (22, 5),
           },
           Raw {
            content: "systemPackages",
            position: (22, 17),
           },
          ],
         },
         List {
          elements: [
           Variable {
            identifier: "firmware-pkg",
            position: (22, 36),
           },
          ],
          position: (22, 34),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (24, 5),
           },
           Raw {
            content: "dbus",
            position: (24, 14),
           },
           Raw {
            content: "packages",
            position: (24, 19),
           },
          ],
         },
         List {
          elements: [
           Variable {
            identifier: "firmware-pkg",
            position: (24, 32),
           },
          ],
          position: (24, 30),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "systemd",
            position: (26, 5),
           },
           Raw {
            content: "services",
            position: (26, 13),
           },
           Raw {
            content: "system76-firmware-daemon",
            position: (26, 22),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "description",
               position: (27, 7),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "The System76 Firmware Daemon",
               position: (27, 22),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "serviceConfig",
               position: (29, 7),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "ExecStart",
                  position: (30, 9),
                 },
                ],
               },
               String {
                parts: [
                 Expression {
                  expression: Variable {
                   identifier: "firmware-pkg",
                   position: (30, 24),
                  },
                 },
                 Raw {
                  content: "/bin/system76-firmware-daemon",
                  position: (30, 37),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "Restart",
                  position: (32, 9),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "on-failure",
                  position: (32, 20),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (29, 23),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "wantedBy",
               position: (35, 7),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "multi-user.target",
                 position: (35, 21),
                },
               ],
              },
             ],
             position: (35, 18),
            },
           ),
          ],
          recursive: false,
          position: (26, 49),
         },
        ),
       ],
       recursive: false,
       position: (20, 52),
      },
     ],
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "power-pkg",
       position: (39, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (39, 15),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "boot",
        position: (39, 22),
       },
       Raw {
        content: "kernelPackages",
        position: (39, 27),
       },
       Raw {
        content: "system76-power",
        position: (39, 42),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "powerConfig",
       position: (40, 3),
      },
     ],
    },
    FunctionApplication {
     function: Variable {
      identifier: "mkIf",
      position: (40, 17),
     },
     arguments: [
      PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (40, 22),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "power-daemon",
          position: (40, 26),
         },
         Raw {
          content: "enable",
          position: (40, 39),
         },
        ],
       },
       default: None,
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (42, 5),
           },
           Raw {
            content: "systemPackages",
            position: (42, 17),
           },
          ],
         },
         List {
          elements: [
           Variable {
            identifier: "power-pkg",
            position: (42, 36),
           },
          ],
          position: (42, 34),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (44, 5),
           },
           Raw {
            content: "dbus",
            position: (44, 14),
           },
           Raw {
            content: "packages",
            position: (44, 19),
           },
          ],
         },
         List {
          elements: [
           Variable {
            identifier: "power-pkg",
            position: (44, 32),
           },
          ],
          position: (44, 30),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "systemd",
            position: (46, 5),
           },
           Raw {
            content: "services",
            position: (46, 13),
           },
           Raw {
            content: "system76-power",
            position: (46, 22),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "description",
               position: (47, 7),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "System76 Power Daemon",
               position: (47, 22),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "serviceConfig",
               position: (48, 7),
              },
             ],
            },
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "ExecStart",
                  position: (49, 9),
                 },
                ],
               },
               String {
                parts: [
                 Expression {
                  expression: Variable {
                   identifier: "power-pkg",
                   position: (49, 24),
                  },
                 },
                 Raw {
                  content: "/bin/system76-power daemon",
                  position: (49, 34),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "Restart",
                  position: (50, 9),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "on-failure",
                  position: (50, 20),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "Type",
                  position: (51, 9),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "dbus",
                  position: (51, 17),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "BusName",
                  position: (52, 9),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "com.system76.PowerDaemon",
                  position: (52, 20),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (48, 23),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "wantedBy",
               position: (54, 7),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "multi-user.target",
                 position: (54, 21),
                },
               ],
              },
             ],
             position: (54, 18),
            },
           ),
          ],
          recursive: false,
          position: (46, 39),
         },
        ),
       ],
       recursive: false,
       position: (40, 46),
      },
     ],
    },
   ),
  ],
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (58, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "hardware",
           position: (59, 5),
          },
          Raw {
           content: "system76",
           position: (59, 14),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "enableAll",
              position: (60, 7),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkEnableOption",
             position: (60, 19),
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "all recommended configuration for system76 systems",
                position: (60, 35),
               },
              ],
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "firmware-daemon",
              position: (62, 7),
             },
             Raw {
              content: "enable",
              position: (62, 23),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (62, 32),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (63, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (63, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enableAll",
                    position: (63, 23),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (64, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (64, 23),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "config.",
                     position: (64, 42),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "opt",
                       position: (64, 51),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enableAll",
                         position: (64, 55),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (65, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (65, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (66, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Whether to enable the system76 firmware daemon",
                   position: (66, 24),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (67, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (67, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "bool",
                    position: (67, 22),
                   },
                  ],
                 },
                 default: None,
                },
               ),
              ],
              recursive: false,
              position: (62, 41),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "kernel-modules",
              position: (70, 7),
             },
             Raw {
              content: "enable",
              position: (70, 22),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (70, 31),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (71, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (71, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enableAll",
                    position: (71, 23),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (72, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (72, 23),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "config.",
                     position: (72, 42),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "opt",
                       position: (72, 51),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enableAll",
                         position: (72, 55),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (73, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (73, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (74, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Whether to make the system76 out-of-tree kernel modules available",
                   position: (74, 24),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (75, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (75, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "bool",
                    position: (75, 22),
                   },
                  ],
                 },
                 default: None,
                },
               ),
              ],
              recursive: false,
              position: (70, 40),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "power-daemon",
              position: (78, 7),
             },
             Raw {
              content: "enable",
              position: (78, 20),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (78, 29),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (79, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (79, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enableAll",
                    position: (79, 23),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (80, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (80, 23),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "config.",
                     position: (80, 42),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "opt",
                       position: (80, 51),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enableAll",
                         position: (80, 55),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (81, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (81, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (82, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Whether to enable the system76 power daemon",
                   position: (82, 24),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (83, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (83, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "bool",
                    position: (83, 22),
                   },
                  ],
                 },
                 default: None,
                },
               ),
              ],
              recursive: false,
              position: (78, 38),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (59, 25),
        },
       ),
      ],
      recursive: false,
      position: (58, 13),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (88, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "mkMerge",
       position: (88, 12),
      },
      arguments: [
       List {
        elements: [
         Variable {
          identifier: "moduleConfig",
          position: (88, 22),
         },
         Variable {
          identifier: "firmwareConfig",
          position: (88, 35),
         },
         Variable {
          identifier: "powerConfig",
          position: (88, 50),
         },
        ],
        position: (88, 20),
       },
      ],
     },
    ),
   ],
   recursive: false,
   position: (57, 4),
  },
  position: (3, 1),
 },
 position: (1, 1),
}