---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    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: "im",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 8),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "i18n",
         position: (6, 15),
        },
        Raw {
         content: "inputMethod",
         position: (6, 20),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "im",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "fcitx5",
         position: (7, 12),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "fcitx5Package",
        position: (8, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (8, 19),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "fcitx5-with-addons",
          position: (8, 24),
         },
         Raw {
          content: "override",
          position: (8, 43),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         Inherit(
          Some(
           Variable {
            identifier: "cfg",
            position: (8, 63),
           },
          ),
          [
           Raw {
            content: "addons",
            position: (8, 68),
           },
          ],
         ),
        ],
        recursive: false,
        position: (8, 52),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (10, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "i18n",
            position: (11, 5),
           },
           Raw {
            content: "inputMethod",
            position: (11, 10),
           },
           Raw {
            content: "fcitx5",
            position: (11, 22),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "addons",
               position: (12, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (12, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (13, 9),
                   },
                  ],
                 },
                 With {
                  expression: Variable {
                   identifier: "types",
                   position: (13, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "listOf",
                    position: (13, 28),
                   },
                   arguments: [
                    Variable {
                     identifier: "package",
                     position: (13, 35),
                    },
                   ],
                  },
                  position: (13, 16),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (14, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (14, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (15, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (15, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "with pkgs; [ fcitx5-rime ]",
                      position: (15, 38),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (16, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Enabled Fcitx5 addons.\n",
                    position: (17, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (12, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (11, 31),
         },
        ),
       ],
       recursive: false,
       position: (10, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (23, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (23, 12),
       },
       arguments: [
        BinaryOperation {
         operator: EqualTo,
         operands: [
          PropertyAccess {
           expression: Variable {
            identifier: "im",
            position: (23, 18),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "enabled",
              position: (23, 21),
             },
            ],
           },
           default: None,
          },
          String {
           parts: [
            Raw {
             content: "fcitx5",
             position: (23, 33),
            },
           ],
          },
         ],
         position: (23, 29),
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "i18n",
              position: (24, 5),
             },
             Raw {
              content: "inputMethod",
              position: (24, 10),
             },
             Raw {
              content: "package",
              position: (24, 22),
             },
            ],
           },
           Variable {
            identifier: "fcitx5Package",
            position: (24, 32),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (26, 5),
             },
             Raw {
              content: "variables",
              position: (26, 17),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "GTK_IM_MODULE",
                 position: (27, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "fcitx",
                 position: (27, 24),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "QT_IM_MODULE",
                 position: (28, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "fcitx",
                 position: (28, 23),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "XMODIFIERS",
                 position: (29, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "@im=fcitx",
                 position: (29, 21),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (26, 29),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (32, 5),
             },
             Raw {
              content: "user",
              position: (32, 13),
             },
             Raw {
              content: "services",
              position: (32, 18),
             },
             Raw {
              content: "fcitx5-daemon",
              position: (32, 27),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "enable",
                 position: (33, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (33, 16),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "script",
                 position: (34, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: Variable {
                  identifier: "fcitx5Package",
                  position: (34, 19),
                 },
                },
                Raw {
                 content: "/bin/fcitx5",
                 position: (34, 33),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (35, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "graphical-session.target",
                   position: (35, 21),
                  },
                 ],
                },
               ],
               position: (35, 18),
              },
             ),
            ],
            recursive: false,
            position: (32, 43),
           },
          ),
         ],
         recursive: false,
         position: (23, 42),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (9, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}