---
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: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "cpupower-gui",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (8, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (9, 5),
           },
           Raw {
            content: "cpupower-gui",
            position: (9, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (10, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (10, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (11, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (11, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "types",
                     position: (11, 20),
                    },
                    Raw {
                     content: "bool",
                     position: (11, 26),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (12, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (12, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (13, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (13, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (14, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Enables dbus/systemd service needed by cpupower-gui.\nThese services are responsible for retrieving and modifying cpu power\nsaving settings.\n",
                    position: (15, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (10, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (9, 29),
         },
        ),
       ],
       recursive: false,
       position: (8, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (23, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (23, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (23, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (23, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (24, 5),
             },
             Raw {
              content: "systemPackages",
              position: (24, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (24, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "cpupower-gui",
                 position: (24, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (24, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (25, 5),
             },
             Raw {
              content: "dbus",
              position: (25, 14),
             },
             Raw {
              content: "packages",
              position: (25, 19),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (25, 32),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "cpupower-gui",
                 position: (25, 37),
                },
               ],
              },
              default: None,
             },
            ],
            position: (25, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (26, 5),
             },
             Raw {
              content: "user",
              position: (26, 13),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "services",
                 position: (27, 7),
                },
                Raw {
                 content: "cpupower-gui-user",
                 position: (27, 16),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (28, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Apply cpupower-gui config at user login",
                    position: (28, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "wantedBy",
                    position: (29, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "graphical-session.target",
                      position: (29, 23),
                     },
                    ],
                   },
                  ],
                  position: (29, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "serviceConfig",
                    position: (30, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "Type",
                       position: (31, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "oneshot",
                       position: (31, 19),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "ExecStart",
                       position: (32, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (32, 26),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "cpupower-gui",
                           position: (32, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/cpupower-gui config",
                       position: (32, 44),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (30, 25),
                 },
                ),
               ],
               recursive: false,
               position: (27, 36),
              },
             ),
            ],
            recursive: false,
            position: (26, 20),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (36, 5),
             },
             Raw {
              content: "services",
              position: (36, 13),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "cpupower-gui",
                 position: (37, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (38, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Apply cpupower-gui config at boot",
                    position: (38, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "wantedBy",
                    position: (39, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "multi-user.target",
                      position: (39, 23),
                     },
                    ],
                   },
                  ],
                  position: (39, 20),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "serviceConfig",
                    position: (40, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "Type",
                       position: (41, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "oneshot",
                       position: (41, 19),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "ExecStart",
                       position: (42, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (42, 26),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "cpupower-gui",
                           position: (42, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/cpupower-gui config",
                       position: (42, 44),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (40, 25),
                 },
                ),
               ],
               recursive: false,
               position: (37, 22),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "cpupower-gui-helper",
                 position: (45, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (46, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "cpupower-gui system helper",
                    position: (46, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "aliases",
                    position: (47, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "dbus-org.rnd2.cpupower_gui.helper.service",
                      position: (47, 22),
                     },
                    ],
                   },
                  ],
                  position: (47, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "serviceConfig",
                    position: (48, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "Type",
                       position: (49, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "dbus",
                       position: (49, 19),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "BusName",
                       position: (50, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "org.rnd2.cpupower_gui.helper",
                       position: (50, 22),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "ExecStart",
                       position: (51, 11),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (51, 26),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "cpupower-gui",
                           position: (51, 31),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/lib/cpupower-gui/cpupower-gui-helper",
                       position: (51, 44),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (48, 25),
                 },
                ),
               ],
               recursive: false,
               position: (45, 29),
              },
             ),
            ],
            recursive: false,
            position: (36, 24),
           },
          ),
         ],
         recursive: false,
         position: (23, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (7, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}