---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (7, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (11, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (11, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "environment",
         position: (11, 16),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (17, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (19, 5),
           },
           Raw {
            content: "variables",
            position: (19, 17),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "NIXPKGS_CONFIG",
               position: (20, 9),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "/etc/nix/nixpkgs-config.nix",
               position: (20, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "PAGER",
               position: (23, 9),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkDefault",
              position: (23, 17),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "less",
                 position: (23, 28),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "EDITOR",
               position: (24, 9),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkDefault",
              position: (24, 18),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "nano",
                 position: (24, 29),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "XDG_CONFIG_DIRS",
               position: (25, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/etc/xdg",
                 position: (25, 30),
                },
               ],
              },
             ],
             position: (25, 27),
            },
           ),
          ],
          recursive: false,
          position: (20, 7),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "programs",
            position: (29, 5),
           },
           Raw {
            content: "less",
            position: (29, 14),
           },
           Raw {
            content: "enable",
            position: (29, 19),
           },
          ],
         },
         Variable {
          identifier: "true",
          position: (29, 28),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (31, 5),
           },
           Raw {
            content: "profiles",
            position: (31, 17),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkAfter",
           position: (31, 28),
          },
          arguments: [
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "/nix/var/nix/profiles/default",
                position: (32, 10),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "/run/current-system/sw",
                position: (33, 10),
               },
              ],
             },
            ],
            position: (32, 7),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (37, 5),
           },
           Raw {
            content: "profileRelativeSessionVariables",
            position: (37, 17),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "PATH",
               position: (38, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/bin",
                 position: (38, 19),
                },
               ],
              },
             ],
             position: (38, 16),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "INFOPATH",
               position: (39, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/info",
                 position: (39, 23),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/share/info",
                 position: (39, 31),
                },
               ],
              },
             ],
             position: (39, 20),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "KDEDIRS",
               position: (40, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [],
              },
             ],
             position: (40, 19),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "QT_PLUGIN_PATH",
               position: (41, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/lib/qt4/plugins",
                 position: (41, 29),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/lib/kde4/plugins",
                 position: (41, 48),
                },
               ],
              },
             ],
             position: (41, 26),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "QTWEBKIT_PLUGIN_PATH",
               position: (42, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/lib/mozilla/plugins/",
                 position: (42, 35),
                },
               ],
              },
             ],
             position: (42, 32),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "GTK_PATH",
               position: (43, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/lib/gtk-2.0",
                 position: (43, 23),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/lib/gtk-3.0",
                 position: (43, 38),
                },
               ],
              },
             ],
             position: (43, 20),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "XDG_CONFIG_DIRS",
               position: (44, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/etc/xdg",
                 position: (44, 30),
                },
               ],
              },
             ],
             position: (44, 27),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "XDG_DATA_DIRS",
               position: (45, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/share",
                 position: (45, 28),
                },
               ],
              },
             ],
             position: (45, 25),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "MOZ_PLUGIN_PATH",
               position: (46, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/lib/mozilla/plugins",
                 position: (46, 30),
                },
               ],
              },
             ],
             position: (46, 27),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "LIBEXEC_PATH",
               position: (47, 9),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "/lib/libexec",
                 position: (47, 27),
                },
               ],
              },
             ],
             position: (47, 24),
            },
           ),
          ],
          recursive: false,
          position: (38, 7),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "environment",
            position: (50, 5),
           },
           Raw {
            content: "extraInit",
            position: (50, 17),
           },
          ],
         },
         String {
          parts: [
           Raw {
            content: "unset ASPELL_CONF\nfor i in ",
            position: (52, 1),
           },
           Expression {
            expression: FunctionApplication {
             function: Variable {
              identifier: "concatStringsSep",
              position: (53, 21),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: " ",
                 position: (53, 39),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "reverseList",
                position: (53, 43),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (53, 55),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "profiles",
                    position: (53, 59),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ],
            },
           },
           Raw {
            content: " ; do\n  if [ -d \"$i/lib/aspell\" ]; then\n    export ASPELL_CONF=\"dict-dir $i/lib/aspell\"\n  fi\ndone\n\nexport NIX_USER_PROFILE_DIR=\"/nix/var/nix/profiles/per-user/$USER\"\nexport NIX_PROFILES=\"",
            position: (53, 69),
           },
           Expression {
            expression: FunctionApplication {
             function: Variable {
              identifier: "concatStringsSep",
              position: (60, 33),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: " ",
                 position: (60, 51),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "reverseList",
                position: (60, 55),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (60, 67),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "profiles",
                    position: (60, 71),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ],
            },
           },
           Raw {
            content: "\"\n",
            position: (60, 81),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (17, 12),
      },
     ),
    ],
    recursive: false,
    position: (15, 1),
   },
   position: (9, 1),
  },
  position: (7, 1),
 },
 position: (5, 1),
}