---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "throttled",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (8, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (9, 5),
           },
           Raw {
            content: "throttled",
            position: (9, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (10, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (10, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "fix for Intel CPU throttling",
                 position: (10, 32),
                },
               ],
               position: (10, 31),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "extraConfig",
               position: (12, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (12, 21),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (13, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (13, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (13, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (14, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (14, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (15, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Alternative configuration",
                    position: (15, 24),
                   },
                  ],
                  position: (15, 23),
                 },
                },
               ],
               recursive: false,
               position: (12, 30),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (9, 26),
         },
        },
       ],
       recursive: false,
       position: (8, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (20, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (20, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (20, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (20, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (21, 5),
             },
             Raw {
              content: "packages",
              position: (21, 13),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (21, 26),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "throttled",
                 position: (21, 31),
                },
               ],
              },
              default: None,
             },
            ],
            position: (21, 24),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (23, 5),
             },
             Raw {
              content: "services",
              position: (23, 13),
             },
             Raw {
              content: "lenovo_fix",
              position: (23, 22),
             },
             Raw {
              content: "wantedBy",
              position: (23, 33),
             },
            ],
           },
           to: List {
            elements: [
             String {
              parts: [
               Raw {
                content: "multi-user.target",
                position: (23, 47),
               },
              ],
              position: (23, 46),
             },
            ],
            position: (23, 44),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (25, 5),
             },
             Raw {
              content: "etc",
              position: (25, 17),
             },
             Expression {
              ast: String {
               parts: [
                Raw {
                 content: "lenovo_fix.conf",
                 position: (25, 22),
                },
               ],
               position: (25, 21),
              },
             },
             Raw {
              content: "source",
              position: (25, 39),
             },
            ],
           },
           to: IfThenElse {
            predicate: BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (26, 10),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "extraConfig",
                  position: (26, 14),
                 },
                ],
               },
               default: None,
              },
              String {
               parts: [],
               position: (26, 29),
              },
             ],
             position: (26, 26),
            },
            then: FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (27, 12),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "writeText",
                 position: (27, 17),
                },
               ],
              },
              default: None,
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "lenovo_fix.conf",
                 position: (27, 28),
                },
               ],
               position: (27, 27),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (27, 45),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "extraConfig",
                  position: (27, 49),
                 },
                ],
               },
               default: None,
              },
             ],
            },
            else_: String {
             parts: [
              Interpolation {
               expression: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (28, 15),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "throttled",
                   position: (28, 20),
                  },
                 ],
                },
                default: None,
               },
              },
              Raw {
               content: "/etc/lenovo_fix.conf",
               position: (28, 30),
              },
             ],
             position: (28, 12),
            },
            position: (26, 7),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "boot",
              position: (32, 5),
             },
             Raw {
              content: "kernelParams",
              position: (32, 10),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "optional",
             position: (33, 7),
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "versionAtLeast",
                position: (33, 17),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (33, 32),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "boot",
                    position: (33, 39),
                   },
                   Raw {
                    content: "kernelPackages",
                    position: (33, 44),
                   },
                   Raw {
                    content: "kernel",
                    position: (33, 59),
                   },
                   Raw {
                    content: "version",
                    position: (33, 66),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "5.9",
                   position: (33, 75),
                  },
                 ],
                 position: (33, 74),
                },
               ],
              },
              position: (33, 16),
             },
             String {
              parts: [
               Raw {
                content: "msr.allow_writes=on",
                position: (34, 8),
               },
              ],
              position: (34, 7),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (20, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (7, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}