---
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: "prg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "prg",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "thefuck",
         position: (7, 13),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "initScript",
        position: (9, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "eval $(",
        position: (10, 1),
       },
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "pkgs",
          position: (10, 14),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "thefuck",
            position: (10, 19),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: "/bin/thefuck --alias ",
        position: (10, 27),
       },
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (10, 50),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "alias",
            position: (10, 54),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: ")\n",
        position: (10, 60),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (14, 5),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "programs",
            position: (15, 7),
           },
           Raw {
            content: "thefuck",
            position: (15, 16),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (16, 9),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (16, 18),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "thefuck",
                 position: (16, 34),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "alias",
               position: (18, 9),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (18, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (19, 11),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "fuck",
                    position: (19, 22),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (20, 11),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (20, 18),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (20, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (22, 11),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "`thefuck` needs an alias to be configured.\nThe default value is `fuck`, but you can use anything else as well.\n",
                    position: (23, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (18, 26),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (15, 26),
         },
        ),
       ],
       recursive: false,
       position: (14, 15),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (30, 5),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (30, 14),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (30, 19),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (30, 23),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (31, 7),
             },
             Raw {
              content: "systemPackages",
              position: (31, 19),
             },
            ],
           },
           With {
            expression: Variable {
             identifier: "pkgs",
             position: (31, 41),
            },
            target: List {
             elements: [
              Variable {
               identifier: "thefuck",
               position: (31, 49),
              },
             ],
             position: (31, 47),
            },
            position: (31, 36),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "programs",
              position: (33, 7),
             },
             Raw {
              content: "bash",
              position: (33, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (33, 21),
             },
            ],
           },
           Variable {
            identifier: "initScript",
            position: (33, 44),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "programs",
              position: (34, 7),
             },
             Raw {
              content: "zsh",
              position: (34, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (34, 20),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (34, 43),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "prg",
               position: (34, 48),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "zsh",
                 position: (34, 52),
                },
                Raw {
                 content: "enable",
                 position: (34, 56),
                },
               ],
              },
              default: None,
             },
             Variable {
              identifier: "initScript",
              position: (34, 63),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "programs",
              position: (35, 7),
             },
             Raw {
              content: "fish",
              position: (35, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (35, 21),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (35, 44),
            },
            arguments: [
             PropertyAccess {
              expression: Variable {
               identifier: "prg",
               position: (35, 49),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "fish",
                 position: (35, 53),
                },
                Raw {
                 content: "enable",
                 position: (35, 58),
                },
               ],
              },
              default: None,
             },
             String {
              parts: [
               Raw {
                content: "",
                position: (36, 1),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (36, 11),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "thefuck",
                    position: (36, 16),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/bin/thefuck --alias | source\n",
                position: (36, 24),
               },
              ],
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (30, 30),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (13, 3),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}