---
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: (2, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (4, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (4, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (4, 16),
        },
        Raw {
         content: "auto-cpufreq",
         position: (4, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (6, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (7, 5),
           },
           Raw {
            content: "auto-cpufreq",
            position: (7, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (8, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (8, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "auto-cpufreq daemon",
                 position: (8, 32),
                },
               ],
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (7, 29),
         },
        ),
       ],
       recursive: false,
       position: (6, 13),
      },
     ),
     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: "environment",
              position: (13, 5),
             },
             Raw {
              content: "systemPackages",
              position: (13, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (13, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "auto-cpufreq",
                 position: (13, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (13, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (15, 5),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "packages",
                 position: (16, 7),
                },
               ],
              },
              List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (16, 20),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "auto-cpufreq",
                    position: (16, 25),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (16, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "services",
                 position: (17, 7),
                },
                Raw {
                 content: "auto-cpufreq",
                 position: (17, 16),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "wantedBy",
                    position: (19, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "multi-user.target",
                      position: (19, 23),
                     },
                    ],
                   },
                  ],
                  position: (19, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "path",
                    position: (20, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (20, 21),
                  },
                  target: List {
                   elements: [
                    Variable {
                     identifier: "bash",
                     position: (20, 29),
                    },
                    Variable {
                     identifier: "coreutils",
                     position: (20, 34),
                    },
                   ],
                   position: (20, 27),
                  },
                  position: (20, 16),
                 },
                ),
               ],
               recursive: false,
               position: (17, 31),
              },
             ),
            ],
            recursive: false,
            position: (15, 15),
           },
          ),
         ],
         recursive: false,
         position: (12, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (5, 4),
   },
   position: (3, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}