Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 5, column: 6, }, end: Position { line: 5, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 9, column: 9, }, end: Position { line: 9, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 24, }, }, }, ), Raw( PartRaw { content: "xonsh", span: Span { start: Position { line: 9, column: 25, }, end: Position { line: 9, column: 30, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 13, }, }, }, ), Raw( PartRaw { content: "xonsh", span: Span { start: Position { line: 17, column: 14, }, end: Position { line: 17, column: 19, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 27, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to configure xonsh as an interactive shell.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 9, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 23, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 24, column: 16, }, end: Position { line: 24, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 24, column: 22, }, end: Position { line: 24, column: 26, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 19, column: 25, }, end: Position { line: 25, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "xonsh", span: Span { start: Position { line: 29, column: 24, }, end: Position { line: 29, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 30, column: 23, }, end: Position { line: 30, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.xonsh", span: Span { start: Position { line: 30, column: 42, }, end: Position { line: 30, column: 52, }, }, }, ), ], span: Span { start: Position { line: 30, column: 41, }, end: Position { line: 30, column: 53, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 31, column: 19, }, end: Position { line: 31, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.xonsh.override { configFile = \"/path/to/xonshrc\"; }", span: Span { start: Position { line: 31, column: 38, }, end: Position { line: 31, column: 96, }, }, }, ), ], span: Span { start: Position { line: 31, column: 37, }, end: Position { line: 31, column: 97, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 23, }, end: Position { line: 32, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 27, }, end: Position { line: 32, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "xonsh package to use.\n", span: Span { start: Position { line: 33, column: 1, }, end: Position { line: 34, column: 9, }, }, }, ), ], span: Span { start: Position { line: 32, column: 33, }, end: Position { line: 34, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 26, }, end: Position { line: 35, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 39, column: 23, }, end: Position { line: 39, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 39, column: 27, }, end: Position { line: 39, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Control file to customize your shell behavior.", span: Span { start: Position { line: 39, column: 34, }, end: Position { line: 39, column: 80, }, }, }, ), ], span: Span { start: Position { line: 39, column: 33, }, end: Position { line: 39, column: 81, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 27, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 37, column: 25, }, end: Position { line: 41, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 43, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 45, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 47, column: 3, }, end: Position { line: 47, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 16, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 20, }, }, }, ), Raw( PartRaw { content: "xonshrc", span: Span { start: Position { line: 49, column: 21, }, end: Position { line: 49, column: 28, }, }, }, ), Raw( PartRaw { content: "text", span: Span { start: Position { line: 49, column: 29, }, end: Position { line: 49, column: 33, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# /etc/xonshrc: DO NOT EDIT -- this file has been generated automatically.\n\n\nif not ", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 53, column: 14, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 53, column: 17, }, }, }, ), Raw( PartRaw { content: "{...}.get('__NIXOS_SET_ENVIRONMENT_DONE'):\n # The NixOS environment and thereby also $PATH\n # haven't been fully set up at this point. But\n # `source-bash` below requires `bash` to be on $PATH,\n # so add an entry with bash's location:\n $PATH.add(", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 58, column: 21, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 58, column: 22, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 58, column: 24, }, end: Position { line: 58, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bash", span: Span { start: Position { line: 58, column: 29, }, end: Position { line: 58, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin')\n\n # Stash xonsh's ls alias, so that we don't get a collision\n # with Bash's ls alias from environment.shellAliases:\n _ls_alias = aliases.pop('ls', None)\n\n # Source the NixOS environment config.\n source-bash \"", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 65, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 65, column: 26, }, end: Position { line: 65, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 65, column: 33, }, end: Position { line: 65, column: 39, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 65, column: 40, }, end: Position { line: 65, column: 45, }, }, }, ), Raw( PartRaw { content: "setEnvironment", span: Span { start: Position { line: 65, column: 46, }, end: Position { line: 65, column: 60, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"\n\n # Restore xonsh's ls alias, overriding that from Bash (if any).\n if _ls_alias is not None:\n aliases['ls'] = _ls_alias\n del _ls_alias\n\n\n", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 73, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 73, column: 9, }, end: Position { line: 73, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 73, column: 13, }, end: Position { line: 73, column: 19, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 74, column: 5, }, }, }, ), ], span: Span { start: Position { line: 49, column: 36, }, end: Position { line: 74, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 76, column: 5, }, end: Position { line: 76, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 76, column: 17, }, end: Position { line: 76, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 76, column: 36, }, end: Position { line: 76, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 76, column: 40, }, end: Position { line: 76, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 76, column: 34, }, end: Position { line: 76, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 78, column: 5, }, end: Position { line: 78, column: 16, }, }, }, ), Raw( PartRaw { content: "shells", span: Span { start: Position { line: 78, column: 17, }, end: Position { line: 78, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/run/current-system/sw/bin/xonsh", span: Span { start: Position { line: 79, column: 10, }, end: Position { line: 79, column: 42, }, }, }, ), ], span: Span { start: Position { line: 79, column: 9, }, end: Position { line: 79, column: 43, }, }, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 80, column: 12, }, end: Position { line: 80, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 80, column: 16, }, end: Position { line: 80, column: 23, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/xonsh", span: Span { start: Position { line: 80, column: 10, }, end: Position { line: 80, column: 34, }, }, }, ), ], span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 35, }, }, }, ), ], span: Span { start: Position { line: 79, column: 7, }, end: Position { line: 81, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 83, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 85, column: 2, }, }, }, ), span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 85, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 85, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 85, column: 2, }, }, }, )