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: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 5, column: 14, }, end: Position { line: 5, column: 18, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "writeScript", span: Span { start: Position { line: 5, column: 20, }, end: Position { line: 5, column: 31, }, }, }, ), ], span: Span { start: Position { line: 5, column: 4, }, end: Position { line: 5, column: 32, }, }, }, ), ], target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs2storeContents", span: Span { start: Position { line: 8, column: 2, }, end: Position { line: 8, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "l", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 8, column: 27, }, end: Position { line: 8, column: 30, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "object", span: Span { start: Position { line: 8, column: 37, }, end: Position { line: 8, column: 43, }, }, }, ), ], to: Identifier( Identifier { id: "x", span: Span { start: Position { line: 8, column: 46, }, end: Position { line: 8, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "symlink", span: Span { start: Position { line: 8, column: 49, }, end: Position { line: 8, column: 56, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "none", span: Span { start: Position { line: 8, column: 60, }, end: Position { line: 8, column: 64, }, }, }, ), ], span: Span { start: Position { line: 8, column: 59, }, end: Position { line: 8, column: 65, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 35, }, end: Position { line: 8, column: 68, }, }, }, ), span: Span { start: Position { line: 8, column: 32, }, end: Position { line: 8, column: 68, }, }, }, ), Identifier( Identifier { id: "l", span: Span { start: Position { line: 8, column: 70, }, end: Position { line: 8, column: 71, }, }, }, ), ], }, ), span: Span { start: Position { line: 8, column: 23, }, end: Position { line: 8, column: 71, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "../installer/cd-dvd/channel.nix", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 36, }, }, }, ), ], span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 36, }, }, }, ), Path( Path { parts: [ Raw( PartRaw { content: "./minimal.nix", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 18, }, }, }, ), ], span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 18, }, }, }, ), Path( Path { parts: [ Raw( PartRaw { content: "./clone-config.nix", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 23, }, }, }, ), ], span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 23, }, }, }, ), ], span: Span { start: Position { line: 12, column: 13, }, end: Position { line: 16, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 19, column: 3, }, end: Position { line: 19, column: 9, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 19, column: 10, }, end: Position { line: 19, column: 15, }, }, }, ), Raw( PartRaw { content: "tarball", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 19, column: 26, }, end: Position { line: 19, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "callPackage", span: Span { start: Position { line: 19, column: 31, }, end: Position { line: 19, column: 42, }, }, }, ), ], default: None, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../lib/make-system-tarball.nix", span: Span { start: Position { line: 19, column: 43, }, end: Position { line: 19, column: 76, }, }, }, ), ], span: Span { start: Position { line: 19, column: 43, }, end: Position { line: 19, column: 76, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "contents", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 13, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "source", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 22, column: 21, }, end: Position { line: 22, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 22, column: 28, }, end: Position { line: 22, column: 34, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 22, column: 35, }, end: Position { line: 22, column: 40, }, }, }, ), Raw( PartRaw { content: "toplevel", span: Span { start: Position { line: 22, column: 41, }, end: Position { line: 22, column: 49, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/.", span: Span { start: Position { line: 22, column: 19, }, end: Position { line: 22, column: 52, }, }, }, ), ], span: Span { start: Position { line: 22, column: 18, }, end: Position { line: 22, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "target", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "./", span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 21, }, }, }, ), ], span: Span { start: Position { line: 23, column: 18, }, end: Position { line: 23, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 7, }, end: Position { line: 24, column: 8, }, }, }, ), ], span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 25, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraArgs", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "--owner=0", span: Span { start: Position { line: 26, column: 18, }, end: Position { line: 26, column: 27, }, }, }, ), ], span: Span { start: Position { line: 26, column: 17, }, end: Position { line: 26, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "storeContents", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "pkgs2storeContents", span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 39, }, }, }, ), arguments: [ List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 30, column: 14, }, end: Position { line: 30, column: 20, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 30, column: 21, }, end: Position { line: 30, column: 26, }, }, }, ), Raw( PartRaw { content: "toplevel", span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 30, column: 35, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 31, column: 12, }, end: Position { line: 31, column: 18, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 29, column: 40, }, end: Position { line: 32, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraCommands", span: Span { start: Position { line: 35, column: 5, }, end: Position { line: 35, column: 18, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 36, column: 11, }, end: Position { line: 36, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "writeScript", span: Span { start: Position { line: 36, column: 20, }, end: Position { line: 36, column: 31, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "extra-commands.sh", span: Span { start: Position { line: 36, column: 33, }, end: Position { line: 36, column: 50, }, }, }, ), ], span: Span { start: Position { line: 36, column: 32, }, end: Position { line: 36, column: 51, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "rm etc\nmkdir -p proc sys dev etc\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 39, column: 11, }, }, }, ), ], span: Span { start: Position { line: 36, column: 52, }, end: Position { line: 39, column: 13, }, }, }, ), ], }, ), }, ), ], target: Identifier( Identifier { id: "script", span: Span { start: Position { line: 40, column: 10, }, end: Position { line: 40, column: 16, }, }, }, ), span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 40, column: 16, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 77, }, end: Position { line: 41, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 43, column: 3, }, end: Position { line: 43, column: 7, }, }, }, ), Raw( PartRaw { content: "isContainer", span: Span { start: Position { line: 43, column: 8, }, end: Position { line: 43, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 44, column: 3, }, end: Position { line: 44, column: 7, }, }, }, ), Raw( PartRaw { content: "postBootCommands", span: Span { start: Position { line: 44, column: 8, }, end: Position { line: 44, column: 24, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# After booting, register the contents of the Nix store in the Nix\n# database.\nif [ -f /nix-path-registration ]; then\n ", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 49, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 49, column: 11, }, end: Position { line: 49, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nix", span: Span { start: Position { line: 49, column: 18, }, end: Position { line: 49, column: 21, }, }, }, ), Raw( PartRaw { content: "package", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 29, }, }, }, ), Raw( PartRaw { content: "out", span: Span { start: Position { line: 49, column: 30, }, end: Position { line: 49, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/nix-store --load-db < /nix-path-registration &&\n rm /nix-path-registration\nfi\n\n# nixos-rebuild also requires a \"system\" profile\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 54, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nix", span: Span { start: Position { line: 54, column: 16, }, end: Position { line: 54, column: 19, }, }, }, ), Raw( PartRaw { content: "package", span: Span { start: Position { line: 54, column: 20, }, end: Position { line: 54, column: 27, }, }, }, ), Raw( PartRaw { content: "out", span: Span { start: Position { line: 54, column: 28, }, end: Position { line: 54, column: 31, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 55, column: 5, }, }, }, ), ], span: Span { start: Position { line: 45, column: 5, }, end: Position { line: 55, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 58, column: 3, }, end: Position { line: 58, column: 9, }, }, }, ), Raw( PartRaw { content: "activationScripts", span: Span { start: Position { line: 58, column: 10, }, end: Position { line: 58, column: 27, }, }, }, ), Raw( PartRaw { content: "installInitScript", span: Span { start: Position { line: 58, column: 28, }, end: Position { line: 58, column: 45, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ln -fs $systemConfig/init /init\n", span: Span { start: Position { line: 59, column: 1, }, end: Position { line: 60, column: 3, }, }, }, ), ], span: Span { start: Position { line: 58, column: 48, }, end: Position { line: 60, column: 5, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 4, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 61, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 61, column: 2, }, }, }, )