Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 6, }, end: Position { line: 7, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 11, column: 16, }, end: Position { line: 11, column: 27, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 16, }, }, }, ), Raw( PartRaw { content: "variables", span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NIXPKGS_CONFIG", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/nix/nixpkgs-config.nix", span: Span { start: Position { line: 20, column: 27, }, end: Position { line: 20, column: 54, }, }, }, ), ], span: Span { start: Position { line: 20, column: 26, }, end: Position { line: 20, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PAGER", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 23, column: 17, }, end: Position { line: 23, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "less", span: Span { start: Position { line: 23, column: 28, }, end: Position { line: 23, column: 32, }, }, }, ), ], span: Span { start: Position { line: 23, column: 27, }, end: Position { line: 23, column: 33, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "EDITOR", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 24, column: 18, }, end: Position { line: 24, column: 27, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "nano", span: Span { start: Position { line: 24, column: 29, }, end: Position { line: 24, column: 33, }, }, }, ), ], span: Span { start: Position { line: 24, column: 28, }, end: Position { line: 24, column: 34, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "XDG_CONFIG_DIRS", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 24, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/etc/xdg", span: Span { start: Position { line: 25, column: 30, }, end: Position { line: 25, column: 38, }, }, }, ), ], span: Span { start: Position { line: 25, column: 29, }, end: Position { line: 25, column: 39, }, }, }, ), ], span: Span { start: Position { line: 25, column: 27, }, end: Position { line: 25, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 26, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 13, }, }, }, ), Raw( PartRaw { content: "less", span: Span { start: Position { line: 29, column: 14, }, end: Position { line: 29, column: 18, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 25, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 29, column: 28, }, end: Position { line: 29, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 31, column: 16, }, }, }, ), Raw( PartRaw { content: "profiles", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkAfter", span: Span { start: Position { line: 31, column: 28, }, end: Position { line: 31, column: 35, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/nix/var/nix/profiles/default", span: Span { start: Position { line: 32, column: 10, }, end: Position { line: 32, column: 39, }, }, }, ), ], span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 40, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/run/current-system/sw", span: Span { start: Position { line: 33, column: 10, }, end: Position { line: 33, column: 32, }, }, }, ), ], span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 33, }, }, }, ), ], span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 34, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 16, }, }, }, ), Raw( PartRaw { content: "profileRelativeSessionVariables", span: Span { start: Position { line: 37, column: 17, }, end: Position { line: 37, column: 48, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PATH", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 13, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/bin", span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 23, }, }, }, ), ], span: Span { start: Position { line: 38, column: 18, }, end: Position { line: 38, column: 24, }, }, }, ), ], span: Span { start: Position { line: 38, column: 16, }, end: Position { line: 38, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "INFOPATH", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/info", span: Span { start: Position { line: 39, column: 23, }, end: Position { line: 39, column: 28, }, }, }, ), ], span: Span { start: Position { line: 39, column: 22, }, end: Position { line: 39, column: 29, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/share/info", span: Span { start: Position { line: 39, column: 31, }, end: Position { line: 39, column: 42, }, }, }, ), ], span: Span { start: Position { line: 39, column: 30, }, end: Position { line: 39, column: 43, }, }, }, ), ], span: Span { start: Position { line: 39, column: 20, }, end: Position { line: 39, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "KDEDIRS", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [], span: Span { start: Position { line: 40, column: 21, }, end: Position { line: 40, column: 23, }, }, }, ), ], span: Span { start: Position { line: 40, column: 19, }, end: Position { line: 40, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "QT_PLUGIN_PATH", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/qt4/plugins", span: Span { start: Position { line: 41, column: 29, }, end: Position { line: 41, column: 45, }, }, }, ), ], span: Span { start: Position { line: 41, column: 28, }, end: Position { line: 41, column: 46, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/lib/kde4/plugins", span: Span { start: Position { line: 41, column: 48, }, end: Position { line: 41, column: 65, }, }, }, ), ], span: Span { start: Position { line: 41, column: 47, }, end: Position { line: 41, column: 66, }, }, }, ), ], span: Span { start: Position { line: 41, column: 26, }, end: Position { line: 41, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "QTWEBKIT_PLUGIN_PATH", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 29, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/mozilla/plugins/", span: Span { start: Position { line: 42, column: 35, }, end: Position { line: 42, column: 56, }, }, }, ), ], span: Span { start: Position { line: 42, column: 34, }, end: Position { line: 42, column: 57, }, }, }, ), ], span: Span { start: Position { line: 42, column: 32, }, end: Position { line: 42, column: 59, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "GTK_PATH", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-2.0", span: Span { start: Position { line: 43, column: 23, }, end: Position { line: 43, column: 35, }, }, }, ), ], span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 36, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-3.0", span: Span { start: Position { line: 43, column: 38, }, end: Position { line: 43, column: 50, }, }, }, ), ], span: Span { start: Position { line: 43, column: 37, }, end: Position { line: 43, column: 51, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-4.0", span: Span { start: Position { line: 43, column: 53, }, end: Position { line: 43, column: 65, }, }, }, ), ], span: Span { start: Position { line: 43, column: 52, }, end: Position { line: 43, column: 66, }, }, }, ), ], span: Span { start: Position { line: 43, column: 20, }, end: Position { line: 43, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "XDG_CONFIG_DIRS", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 24, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/etc/xdg", span: Span { start: Position { line: 44, column: 30, }, end: Position { line: 44, column: 38, }, }, }, ), ], span: Span { start: Position { line: 44, column: 29, }, end: Position { line: 44, column: 39, }, }, }, ), ], span: Span { start: Position { line: 44, column: 27, }, end: Position { line: 44, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "XDG_DATA_DIRS", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 22, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/share", span: Span { start: Position { line: 45, column: 28, }, end: Position { line: 45, column: 34, }, }, }, ), ], span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 35, }, }, }, ), ], span: Span { start: Position { line: 45, column: 25, }, end: Position { line: 45, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "MOZ_PLUGIN_PATH", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 24, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/mozilla/plugins", span: Span { start: Position { line: 46, column: 30, }, end: Position { line: 46, column: 50, }, }, }, ), ], span: Span { start: Position { line: 46, column: 29, }, end: Position { line: 46, column: 51, }, }, }, ), ], span: Span { start: Position { line: 46, column: 27, }, end: Position { line: 46, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "LIBEXEC_PATH", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 21, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/libexec", span: Span { start: Position { line: 47, column: 27, }, end: Position { line: 47, column: 39, }, }, }, ), ], span: Span { start: Position { line: 47, column: 26, }, end: Position { line: 47, column: 40, }, }, }, ), ], span: Span { start: Position { line: 47, column: 24, }, end: Position { line: 47, column: 42, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 48, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 16, }, }, }, ), Raw( PartRaw { content: "pathsToLink", span: Span { start: Position { line: 50, column: 17, }, end: Position { line: 50, column: 28, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-2.0", span: Span { start: Position { line: 50, column: 34, }, end: Position { line: 50, column: 46, }, }, }, ), ], span: Span { start: Position { line: 50, column: 33, }, end: Position { line: 50, column: 47, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-3.0", span: Span { start: Position { line: 50, column: 49, }, end: Position { line: 50, column: 61, }, }, }, ), ], span: Span { start: Position { line: 50, column: 48, }, end: Position { line: 50, column: 62, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "/lib/gtk-4.0", span: Span { start: Position { line: 50, column: 64, }, end: Position { line: 50, column: 76, }, }, }, ), ], span: Span { start: Position { line: 50, column: 63, }, end: Position { line: 50, column: 77, }, }, }, ), ], span: Span { start: Position { line: 50, column: 31, }, end: Position { line: 50, column: 79, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 52, column: 5, }, end: Position { line: 52, column: 16, }, }, }, ), Raw( PartRaw { content: "extraInit", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 26, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "unset ASPELL_CONF\nfor i in ", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 55, column: 19, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 55, column: 21, }, end: Position { line: 55, column: 37, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 55, column: 39, }, end: Position { line: 55, column: 40, }, }, }, ), ], span: Span { start: Position { line: 55, column: 38, }, end: Position { line: 55, column: 41, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "reverseList", span: Span { start: Position { line: 55, column: 43, }, end: Position { line: 55, column: 54, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 55, column: 55, }, end: Position { line: 55, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "profiles", span: Span { start: Position { line: 55, column: 59, }, end: Position { line: 55, column: 67, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), Raw( PartRaw { 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=\"", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 62, column: 31, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 62, column: 33, }, end: Position { line: 62, column: 49, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 62, column: 51, }, end: Position { line: 62, column: 52, }, }, }, ), ], span: Span { start: Position { line: 62, column: 50, }, end: Position { line: 62, column: 53, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "reverseList", span: Span { start: Position { line: 62, column: 55, }, end: Position { line: 62, column: 66, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 62, column: 67, }, end: Position { line: 62, column: 70, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "profiles", span: Span { start: Position { line: 62, column: 71, }, end: Position { line: 62, column: 79, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), Raw( PartRaw { content: "\"\n", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 63, column: 7, }, }, }, ), ], span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 63, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 12, }, end: Position { line: 65, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 9, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 67, column: 2, }, }, }, )