---
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: (4, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "flatpak",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "meta",
         position: (9, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "doc",
            position: (10, 5),
           },
          ],
         },
         to: Path {
          parts: [
           Raw {
            content: "./flatpak.xml",
            position: (10, 11),
           },
          ],
          position: (10, 11),
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "maintainers",
            position: (11, 5),
           },
          ],
         },
         to: PropertyAccess {
          expression: Variable {
           identifier: "pkgs",
           position: (11, 19),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "flatpak",
             position: (11, 24),
            },
            Raw {
             content: "meta",
             position: (11, 32),
            },
            Raw {
             content: "maintainers",
             position: (11, 37),
            },
           ],
          },
          default: None,
         },
        },
       ],
       recursive: false,
       position: (9, 10),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (15, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (16, 5),
           },
           Raw {
            content: "flatpak",
            position: (16, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (17, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (17, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "flatpak",
                 position: (17, 32),
                },
               ],
               position: (17, 31),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (16, 24),
         },
        },
       ],
       recursive: false,
       position: (15, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (23, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (23, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (23, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (23, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "assertions",
              position: (25, 5),
             },
            ],
           },
           to: List {
            elements: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "assertion",
                   position: (26, 9),
                  },
                 ],
                },
                to: Parentheses {
                 expression: BinaryOperation {
                  operator: EqualTo,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (26, 22),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "xdg",
                       position: (26, 29),
                      },
                      Raw {
                       content: "portal",
                       position: (26, 33),
                      },
                      Raw {
                       content: "enable",
                       position: (26, 40),
                      },
                     ],
                    },
                    default: None,
                   },
                   Variable {
                    identifier: "true",
                    position: (26, 50),
                   },
                  ],
                  position: (26, 47),
                 },
                 position: (26, 21),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "message",
                   position: (27, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "To use Flatpak you must enable XDG Desktop Portals with xdg.portal.enable.",
                   position: (27, 20),
                  },
                 ],
                 position: (27, 19),
                },
               },
              ],
              recursive: false,
              position: (26, 7),
             },
            ],
            position: (25, 18),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (31, 5),
             },
             Raw {
              content: "systemPackages",
              position: (31, 17),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (31, 36),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "flatpak",
                 position: (31, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (31, 34),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "security",
              position: (33, 5),
             },
             Raw {
              content: "polkit",
              position: (33, 14),
             },
             Raw {
              content: "enable",
              position: (33, 21),
             },
            ],
           },
           to: Variable {
            identifier: "true",
            position: (33, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (35, 5),
             },
             Raw {
              content: "dbus",
              position: (35, 14),
             },
             Raw {
              content: "packages",
              position: (35, 19),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (35, 32),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "flatpak",
                 position: (35, 37),
                },
               ],
              },
              default: None,
             },
            ],
            position: (35, 30),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (37, 5),
             },
             Raw {
              content: "packages",
              position: (37, 13),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (37, 26),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "flatpak",
                 position: (37, 31),
                },
               ],
              },
              default: None,
             },
            ],
            position: (37, 24),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (39, 5),
             },
             Raw {
              content: "profiles",
              position: (39, 17),
             },
            ],
           },
           to: List {
            elements: [
             String {
              parts: [
               Raw {
                content: "$HOME/.local/share/flatpak/exports",
                position: (40, 8),
               },
              ],
              position: (40, 7),
             },
             String {
              parts: [
               Raw {
                content: "/var/lib/flatpak/exports",
                position: (41, 8),
               },
              ],
              position: (41, 7),
             },
            ],
            position: (39, 28),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (48, 5),
             },
             Raw {
              content: "users",
              position: (48, 11),
             },
             Raw {
              content: "flatpak",
              position: (48, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (49, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Flatpak system helper",
                 position: (49, 22),
                },
               ],
               position: (49, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "group",
                 position: (50, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "flatpak",
                 position: (50, 16),
                },
               ],
               position: (50, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "isSystemUser",
                 position: (51, 7),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (51, 22),
              },
             },
            ],
            recursive: false,
            position: (48, 27),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (54, 5),
             },
             Raw {
              content: "groups",
              position: (54, 11),
             },
             Raw {
              content: "flatpak",
              position: (54, 18),
             },
            ],
           },
           to: Map {
            bindings: [],
            recursive: false,
            position: (54, 28),
           },
          },
         ],
         recursive: false,
         position: (23, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (8, 4),
   },
   position: (6, 1),
  },
  position: (4, 1),
 },
 position: (2, 1),
}