---
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: (5, 6),
  },
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (9, 3),
       },
       Raw {
        content: "environment",
        position: (9, 11),
       },
       Raw {
        content: "enableAllTerminfo",
        position: (9, 23),
       },
      ],
     },
     With {
      expression: Variable {
       identifier: "lib",
       position: (9, 48),
      },
      target: FunctionApplication {
       function: Variable {
        identifier: "mkOption",
        position: (9, 53),
       },
       arguments: [
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "default",
              position: (10, 5),
             },
            ],
           },
           Variable {
            identifier: "false",
            position: (10, 15),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "type",
              position: (11, 5),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "types",
             position: (11, 12),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "bool",
               position: (11, 18),
              },
             ],
            },
            default: None,
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "description",
              position: (12, 5),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "Whether to install all terminfo outputs\n",
             },
            ],
            position: (12, 19),
           },
          ),
         ],
         recursive: false,
         position: (9, 62),
        },
       ],
      },
      position: (9, 43),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (17, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "environment",
           position: (20, 5),
          },
          Raw {
           content: "systemPackages",
           position: (20, 17),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkIf",
          position: (20, 34),
         },
         arguments: [
          PropertyAccess {
           expression: Variable {
            identifier: "config",
            position: (20, 39),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (20, 46),
             },
             Raw {
              content: "enableAllTerminfo",
              position: (20, 58),
             },
            ],
           },
           default: None,
          },
          FunctionApplication {
           function: Variable {
            identifier: "map",
            position: (20, 77),
           },
           arguments: [
            Function {
             argument: Some(
              "x",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: PropertyAccess {
              expression: Variable {
               identifier: "x",
               position: (20, 85),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "terminfo",
                 position: (20, 87),
                },
               ],
              },
              default: None,
             },
             position: (20, 82),
            },
            With {
             expression: Variable {
              identifier: "pkgs",
              position: (20, 103),
             },
             target: List {
              elements: [
               Variable {
                identifier: "alacritty",
                position: (21, 7),
               },
               Variable {
                identifier: "foot",
                position: (22, 7),
               },
               Variable {
                identifier: "kitty",
                position: (23, 7),
               },
               Variable {
                identifier: "mtm",
                position: (24, 7),
               },
               Variable {
                identifier: "rxvt-unicode-unwrapped",
                position: (25, 7),
               },
               Variable {
                identifier: "rxvt-unicode-unwrapped-emoji",
                position: (26, 7),
               },
               Variable {
                identifier: "termite",
                position: (27, 7),
               },
               Variable {
                identifier: "wezterm",
                position: (28, 7),
               },
              ],
              position: (20, 109),
             },
             position: (20, 98),
            },
           ],
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "environment",
           position: (31, 5),
          },
          Raw {
           content: "pathsToLink",
           position: (31, 17),
          },
         ],
        },
        List {
         elements: [
          String {
           parts: [
            Raw {
             content: "/share/terminfo",
            },
           ],
           position: (32, 7),
          },
         ],
         position: (31, 31),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "environment",
           position: (35, 5),
          },
          Raw {
           content: "etc",
           position: (35, 17),
          },
          Raw {
           content: "terminfo",
           position: (35, 21),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "source",
              position: (36, 7),
             },
            ],
           },
           String {
            parts: [
             Expression {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (36, 19),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "system",
                  position: (36, 26),
                 },
                 Raw {
                  content: "path",
                  position: (36, 33),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/share/terminfo",
             },
            ],
            position: (36, 16),
           },
          ),
         ],
         recursive: false,
         position: (35, 32),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "environment",
           position: (39, 5),
          },
          Raw {
           content: "profileRelativeSessionVariables",
           position: (39, 17),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "TERMINFO_DIRS",
              position: (40, 7),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "/share/terminfo",
               },
              ],
              position: (40, 25),
             },
            ],
            position: (40, 23),
           },
          ),
         ],
         recursive: false,
         position: (39, 51),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "environment",
           position: (43, 5),
          },
          Raw {
           content: "extraInit",
           position: (43, 17),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "\n# reset TERM with new TERMINFO available (if any)\nexport TERM=$TERM\n",
          },
         ],
         position: (43, 29),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "security",
           position: (49, 5),
          },
          Raw {
           content: "sudo",
           position: (49, 14),
          },
          Raw {
           content: "extraConfig",
           position: (49, 19),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "\n# Keep terminfo database for root and %wheel.\nDefaults:root,%wheel env_keep+=TERMINFO_DIRS\nDefaults:root,%wheel env_keep+=TERMINFO\n",
          },
         ],
         position: (49, 33),
        },
       ),
      ],
      recursive: false,
      position: (17, 12),
     },
    ),
   ],
   recursive: false,
   position: (7, 1),
  },
  position: (5, 1),
 },
 position: (3, 1),
}