---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "cfg",
       position: (4, 3),
      },
     ],
    },
    to: PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (4, 9),
     },
     attribute_path: AttributePath {
      parts: [
       Raw {
        content: "services",
        position: (4, 16),
       },
       Raw {
        content: "packagekit",
        position: (4, 25),
       },
      ],
     },
     default: None,
    },
   },
   Inherit {
    from: Some(
     Variable {
      identifier: "lib",
      position: (6, 12),
     },
    ),
    attributes: [
     Raw {
      content: "mkEnableOption",
      position: (7, 5),
     },
     Raw {
      content: "mkOption",
      position: (7, 20),
     },
     Raw {
      content: "mkIf",
      position: (7, 29),
     },
     Raw {
      content: "mkRemovedOptionModule",
      position: (7, 34),
     },
     Raw {
      content: "types",
      position: (7, 56),
     },
     Raw {
      content: "listToAttrs",
      position: (8, 5),
     },
     Raw {
      content: "recursiveUpdate",
      position: (8, 17),
     },
    ],
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "iniFmt",
       position: (10, 3),
      },
     ],
    },
    to: FunctionApplication {
     function: PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (10, 12),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "formats",
         position: (10, 17),
        },
        Raw {
         content: "ini",
         position: (10, 25),
        },
       ],
      },
      default: None,
     },
     arguments: [
      Map {
       bindings: [],
       recursive: false,
       position: (10, 29),
      },
     ],
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "confFiles",
       position: (12, 3),
      },
     ],
    },
    to: List {
     elements: [
      Parentheses {
       expression: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "iniFmt",
          position: (13, 6),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "generate",
            position: (13, 13),
           },
          ],
         },
         default: None,
        },
        arguments: [
         String {
          parts: [
           Raw {
            content: "PackageKit.conf",
            position: (13, 23),
           },
          ],
          position: (13, 22),
         },
         Parentheses {
          expression: FunctionApplication {
           function: Variable {
            identifier: "recursiveUpdate",
            position: (13, 41),
           },
           arguments: [
            Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "Daemon",
                  position: (15, 9),
                 },
                ],
               },
               to: Map {
                bindings: [
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "DefaultBackend",
                     position: (16, 11),
                    },
                   ],
                  },
                  to: String {
                   parts: [
                    Raw {
                     content: "nix",
                     position: (16, 29),
                    },
                   ],
                   position: (16, 28),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "KeepCache",
                     position: (17, 11),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "false",
                   position: (17, 23),
                  },
                 },
                ],
                recursive: false,
                position: (15, 18),
               },
              },
             ],
             recursive: false,
             position: (14, 7),
            },
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (20, 7),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "settings",
                position: (20, 11),
               },
              ],
             },
             default: None,
            },
           ],
          },
          position: (13, 40),
         },
        ],
       },
       position: (13, 5),
      },
      Parentheses {
       expression: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "iniFmt",
          position: (22, 6),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "generate",
            position: (22, 13),
           },
          ],
         },
         default: None,
        },
        arguments: [
         String {
          parts: [
           Raw {
            content: "Vendor.conf",
            position: (22, 23),
           },
          ],
          position: (22, 22),
         },
         Parentheses {
          expression: FunctionApplication {
           function: Variable {
            identifier: "recursiveUpdate",
            position: (22, 37),
           },
           arguments: [
            Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "PackagesNotFound",
                  position: (24, 9),
                 },
                ],
               },
               to: Map {
                bindings: [
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "DefaultUrl",
                     position: (25, 11),
                    },
                   ],
                  },
                  to: String {
                   parts: [
                    Raw {
                     content: "https://github.com/NixOS/nixpkgs",
                     position: (25, 25),
                    },
                   ],
                   position: (25, 24),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "CodecUrl",
                     position: (26, 11),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "DefaultUrl",
                   position: (26, 22),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "HardwareUrl",
                     position: (27, 11),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "DefaultUrl",
                   position: (27, 25),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "FontUrl",
                     position: (28, 11),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "DefaultUrl",
                   position: (28, 21),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "MimeUrl",
                     position: (29, 11),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "DefaultUrl",
                   position: (29, 21),
                  },
                 },
                ],
                recursive: true,
                position: (24, 28),
               },
              },
             ],
             recursive: false,
             position: (23, 7),
            },
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (32, 7),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "vendorSettings",
                position: (32, 11),
               },
              ],
             },
             default: None,
            },
           ],
          },
          position: (22, 36),
         },
        ],
       },
       position: (22, 5),
      },
     ],
     position: (12, 15),
    },
   },
  ],
  target: Map {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "imports",
        position: (37, 3),
       },
      ],
     },
     to: List {
      elements: [
       Parentheses {
        expression: FunctionApplication {
         function: Variable {
          identifier: "mkRemovedOptionModule",
          position: (38, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (38, 31),
              },
             ],
             position: (38, 30),
            },
            String {
             parts: [
              Raw {
               content: "packagekit",
               position: (38, 42),
              },
             ],
             position: (38, 41),
            },
            String {
             parts: [
              Raw {
               content: "backend",
               position: (38, 55),
              },
             ],
             position: (38, 54),
            },
           ],
           position: (38, 28),
          },
          String {
           parts: [
            Raw {
             content: "Always set to Nix.",
             position: (38, 67),
            },
           ],
           position: (38, 66),
          },
         ],
        },
        position: (38, 5),
       },
      ],
      position: (37, 13),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "options",
        position: (41, 3),
       },
       Raw {
        content: "services",
        position: (41, 11),
       },
       Raw {
        content: "packagekit",
        position: (41, 20),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "enable",
           position: (42, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkEnableOption",
          position: (42, 14),
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "PackageKit provides a cross-platform D-Bus abstraction layer for\ninstalling software. Software utilizing PackageKit can install\nsoftware regardless of the package manager.\n",
             position: (43, 1),
            },
           ],
           position: (42, 29),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "settings",
           position: (48, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (48, 16),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (49, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "iniFmt",
               position: (49, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (49, 21),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (50, 7),
               },
              ],
             },
             to: Map {
              bindings: [],
              recursive: false,
              position: (50, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (51, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Additional settings passed straight through to PackageKit.conf",
                position: (51, 22),
               },
              ],
              position: (51, 21),
             },
            },
           ],
           recursive: false,
           position: (48, 25),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "vendorSettings",
           position: (54, 5),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkOption",
          position: (54, 22),
         },
         arguments: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (55, 7),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "iniFmt",
               position: (55, 14),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (55, 21),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "default",
                position: (56, 7),
               },
              ],
             },
             to: Map {
              bindings: [],
              recursive: false,
              position: (56, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "description",
                position: (57, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "Additional settings passed straight through to Vendor.conf",
                position: (57, 22),
               },
              ],
              position: (57, 21),
             },
            },
           ],
           recursive: false,
           position: (54, 31),
          },
         ],
        },
       },
      ],
      recursive: false,
      position: (41, 33),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "config",
        position: (61, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: Variable {
       identifier: "mkIf",
       position: (61, 12),
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (61, 17),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "enable",
           position: (61, 21),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "services",
             position: (63, 5),
            },
            Raw {
             content: "dbus",
             position: (63, 14),
            },
            Raw {
             content: "packages",
             position: (63, 19),
            },
           ],
          },
          to: With {
           expression: Variable {
            identifier: "pkgs",
            position: (63, 35),
           },
           target: List {
            elements: [
             Variable {
              identifier: "packagekit",
              position: (63, 43),
             },
            ],
            position: (63, 41),
           },
           position: (63, 30),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "environment",
             position: (65, 5),
            },
            Raw {
             content: "systemPackages",
             position: (65, 17),
            },
           ],
          },
          to: With {
           expression: Variable {
            identifier: "pkgs",
            position: (65, 39),
           },
           target: List {
            elements: [
             Variable {
              identifier: "packagekit",
              position: (65, 47),
             },
            ],
            position: (65, 45),
           },
           position: (65, 34),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "systemd",
             position: (67, 5),
            },
            Raw {
             content: "packages",
             position: (67, 13),
            },
           ],
          },
          to: With {
           expression: Variable {
            identifier: "pkgs",
            position: (67, 29),
           },
           target: List {
            elements: [
             Variable {
              identifier: "packagekit",
              position: (67, 37),
             },
            ],
            position: (67, 35),
           },
           position: (67, 24),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "environment",
             position: (69, 5),
            },
            Raw {
             content: "etc",
             position: (69, 17),
            },
           ],
          },
          to: FunctionApplication {
           function: Variable {
            identifier: "listToAttrs",
            position: (69, 23),
           },
           arguments: [
            Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "map",
               position: (69, 36),
              },
              arguments: [
               Parentheses {
                expression: Function {
                 argument: Simple {
                  identifier: "e",
                 },
                 definition: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (71, 9),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "nameValuePair",
                      position: (71, 13),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "PackageKit/",
                      position: (71, 28),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "e",
                        position: (71, 41),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "name",
                          position: (71, 43),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                    ],
                    position: (71, 27),
                   },
                   Map {
                    bindings: [
                     Binding {
                      from: AttributePath {
                       parts: [
                        Raw {
                         content: "source",
                         position: (71, 52),
                        },
                       ],
                      },
                      to: Variable {
                       identifier: "e",
                       position: (71, 61),
                      },
                     },
                    ],
                    recursive: false,
                    position: (71, 50),
                   },
                  ],
                 },
                 position: (70, 8),
                },
                position: (70, 7),
               },
               Variable {
                identifier: "confFiles",
                position: (72, 7),
               },
              ],
             },
             position: (69, 35),
            },
           ],
          },
         },
        ],
        recursive: false,
        position: (61, 28),
       },
      ],
     },
    },
   ],
   recursive: false,
   position: (36, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}