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: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "amazonImage", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "amiBootMode", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 20, }, end: Position { line: 7, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 7, column: 27, }, end: Position { line: 7, column: 30, }, }, }, ), Raw( PartRaw { content: "efi", span: Span { start: Position { line: 7, column: 31, }, end: Position { line: 7, column: 34, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "uefi", span: Span { start: Position { line: 7, column: 41, }, end: Position { line: 7, column: 45, }, }, }, ), ], span: Span { start: Position { line: 7, column: 40, }, end: Position { line: 7, column: 46, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "legacy-bios", span: Span { start: Position { line: 7, column: 53, }, end: Position { line: 7, column: 64, }, }, }, ), ], span: Span { start: Position { line: 7, column: 52, }, end: Position { line: 7, column: 65, }, }, }, ), span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 65, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../modules/virtualisation/amazon-image.nix", span: Span { start: Position { line: 11, column: 15, }, end: Position { line: 11, column: 63, }, }, }, ), ], span: Span { start: Position { line: 11, column: 15, }, end: Position { line: 11, column: 63, }, }, }, ), ], span: Span { start: Position { line: 11, column: 13, }, end: Position { line: 11, column: 65, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 9, }, }, }, ), Raw( PartRaw { content: "boot", span: Span { start: Position { line: 16, column: 10, }, end: Position { line: 16, column: 14, }, }, }, ), Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 27, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "timeout", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 16, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 10, }, end: Position { line: 18, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 18, column: 15, }, end: Position { line: 18, column: 18, }, }, }, ), Raw( PartRaw { content: "versionAtLeast", span: Span { start: Position { line: 18, column: 19, }, end: Position { line: 18, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 18, column: 34, }, end: Position { line: 18, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 18, column: 41, }, end: Position { line: 18, column: 45, }, }, }, ), Raw( PartRaw { content: "kernelPackages", span: Span { start: Position { line: 18, column: 46, }, end: Position { line: 18, column: 60, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 18, column: 61, }, end: Position { line: 18, column: 67, }, }, }, ), Raw( PartRaw { content: "version", span: Span { start: Position { line: 18, column: 68, }, end: Position { line: 18, column: 75, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "4.15", span: Span { start: Position { line: 18, column: 77, }, end: Position { line: 18, column: 81, }, }, }, ), ], span: Span { start: Position { line: 18, column: 76, }, end: Position { line: 18, column: 82, }, }, }, ), ], }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "4294967295", span: Span { start: Position { line: 19, column: 13, }, end: Position { line: 19, column: 23, }, }, }, ), ], span: Span { start: Position { line: 19, column: 12, }, end: Position { line: 19, column: 24, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "255", span: Span { start: Position { line: 20, column: 14, }, end: Position { line: 20, column: 17, }, }, }, ), ], span: Span { start: Position { line: 20, column: 13, }, end: Position { line: 20, column: 18, }, }, }, ), span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 20, column: 18, }, }, }, ), }, ), ], target: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "nvme_core.io_timeout=", span: Span { start: Position { line: 21, column: 11, }, end: Position { line: 21, column: 42, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "timeout", span: Span { start: Position { line: 21, column: 34, }, end: Position { line: 21, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 10, }, end: Position { line: 21, column: 43, }, }, }, ), ], span: Span { start: Position { line: 21, column: 8, }, end: Position { line: 21, column: 45, }, }, }, ), span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 21, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 23, column: 3, }, end: Position { line: 23, column: 10, }, }, }, ), Raw( PartRaw { content: "amazonImage", span: Span { start: Position { line: 23, column: 11, }, end: Position { line: 23, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 24, column: 5, }, end: Position { line: 24, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 24, column: 12, }, end: Position { line: 24, column: 20, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 25, column: 14, }, end: Position { line: 25, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 25, column: 20, }, end: Position { line: 25, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 26, column: 21, }, end: Position { line: 26, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 26, column: 25, }, end: Position { line: 26, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The name of the generated derivation", span: Span { start: Position { line: 26, column: 32, }, end: Position { line: 26, column: 68, }, }, }, ), ], span: Span { start: Position { line: 26, column: 31, }, end: Position { line: 26, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixos-amazon-image-", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 27, column: 39, }, end: Position { line: 27, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 27, column: 46, }, end: Position { line: 27, column: 52, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 27, column: 53, }, end: Position { line: 27, column: 58, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 27, column: 59, }, end: Position { line: 27, column: 64, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 66, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 27, column: 68, }, end: Position { line: 27, column: 72, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 27, column: 73, }, end: Position { line: 27, column: 79, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 27, column: 80, }, end: Position { line: 27, column: 92, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 27, column: 93, }, end: Position { line: 27, column: 99, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 101, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 21, }, end: Position { line: 28, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "contents", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 30, column: 16, }, end: Position { line: 30, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[ { source = pkgs.memtest86 + \"/memtest.bin\";\n target = \"boot/memtest.bin\";\n }\n]\n", span: Span { start: Position { line: 32, column: 1, }, end: Position { line: 36, column: 7, }, }, }, ), ], span: Span { start: Position { line: 31, column: 35, }, end: Position { line: 36, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 37, column: 17, }, end: Position { line: 37, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 38, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 38, column: 25, }, end: Position { line: 38, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "This option lists files to be copied to fixed locations in the\ngenerated image. Glob patterns work.\n", span: Span { start: Position { line: 39, column: 1, }, end: Position { line: 41, column: 7, }, }, }, ), ], span: Span { start: Position { line: 38, column: 31, }, end: Position { line: 41, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 25, }, end: Position { line: 42, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sizeMB", span: Span { start: Position { line: 44, column: 5, }, end: Position { line: 44, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 44, column: 14, }, end: Position { line: 44, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "either", span: Span { start: Position { line: 45, column: 26, }, end: Position { line: 45, column: 32, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "enum", span: Span { start: Position { line: 45, column: 34, }, end: Position { line: 45, column: 38, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "auto", span: Span { start: Position { line: 45, column: 42, }, end: Position { line: 45, column: 46, }, }, }, ), ], span: Span { start: Position { line: 45, column: 41, }, end: Position { line: 45, column: 47, }, }, }, ), ], span: Span { start: Position { line: 45, column: 39, }, end: Position { line: 45, column: 49, }, }, }, ), ], }, ), Identifier( Identifier { id: "int", span: Span { start: Position { line: 45, column: 51, }, end: Position { line: 45, column: 54, }, }, }, ), ], }, ), span: Span { start: Position { line: 45, column: 14, }, end: Position { line: 45, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 46, column: 7, }, end: Position { line: 46, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 46, column: 20, }, end: Position { line: 46, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 46, column: 27, }, end: Position { line: 46, column: 30, }, }, }, ), Raw( PartRaw { content: "hvm", span: Span { start: Position { line: 46, column: 31, }, end: Position { line: 46, column: 34, }, }, }, ), ], default: None, }, ), then: Integer( Integer { value: "2048", span: Span { start: Position { line: 46, column: 40, }, end: Position { line: 46, column: 44, }, }, }, ), else_: Integer( Integer { value: "8192", span: Span { start: Position { line: 46, column: 50, }, end: Position { line: 46, column: 54, }, }, }, ), span: Span { start: Position { line: 46, column: 17, }, end: Position { line: 46, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 47, column: 7, }, end: Position { line: 47, column: 14, }, }, }, ), ], to: Integer( Integer { value: "8192", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 48, column: 7, }, end: Position { line: 48, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 48, column: 21, }, end: Position { line: 48, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 48, column: 25, }, end: Position { line: 48, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The size in MB of the image", span: Span { start: Position { line: 48, column: 32, }, end: Position { line: 48, column: 59, }, }, }, ), ], span: Span { start: Position { line: 48, column: 31, }, end: Position { line: 48, column: 60, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 44, column: 23, }, end: Position { line: 49, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 51, column: 5, }, end: Position { line: 51, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 51, column: 14, }, end: Position { line: 51, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 52, column: 14, }, end: Position { line: 52, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "raw", span: Span { start: Position { line: 52, column: 28, }, end: Position { line: 52, column: 31, }, }, }, ), ], span: Span { start: Position { line: 52, column: 27, }, end: Position { line: 52, column: 32, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "qcow2", span: Span { start: Position { line: 52, column: 34, }, end: Position { line: 52, column: 39, }, }, }, ), ], span: Span { start: Position { line: 52, column: 33, }, end: Position { line: 52, column: 40, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "vpc", span: Span { start: Position { line: 52, column: 42, }, end: Position { line: 52, column: 45, }, }, }, ), ], span: Span { start: Position { line: 52, column: 41, }, end: Position { line: 52, column: 46, }, }, }, ), ], span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 52, column: 48, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "vpc", span: Span { start: Position { line: 53, column: 18, }, end: Position { line: 53, column: 21, }, }, }, ), ], span: Span { start: Position { line: 53, column: 17, }, end: Position { line: 53, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 54, column: 7, }, end: Position { line: 54, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 54, column: 25, }, end: Position { line: 54, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The image format to output", span: Span { start: Position { line: 54, column: 32, }, end: Position { line: 54, column: 58, }, }, }, ), ], span: Span { start: Position { line: 54, column: 31, }, end: Position { line: 54, column: 59, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 51, column: 23, }, end: Position { line: 55, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 25, }, end: Position { line: 56, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 58, column: 3, }, end: Position { line: 58, column: 9, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 58, column: 10, }, end: Position { line: 58, column: 16, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 58, column: 17, }, end: Position { line: 58, column: 22, }, }, }, ), Raw( PartRaw { content: "amazonImage", span: Span { start: Position { line: 58, column: 23, }, end: Position { line: 58, column: 34, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 59, column: 5, }, end: Position { line: 59, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 59, column: 18, }, end: Position { line: 59, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 59, column: 23, }, end: Position { line: 59, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "configuration.nix", span: Span { start: Position { line: 59, column: 34, }, end: Position { line: 59, column: 51, }, }, }, ), ], span: Span { start: Position { line: 59, column: 33, }, end: Position { line: 59, column: 52, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{ modulesPath, ... }: {\n imports = [ \"", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 62, column: 24, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 62, column: 27, }, }, }, ), Raw( PartRaw { content: "{modulesPath}/virtualisation/amazon-image.nix\" ];\n ", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 63, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 63, column: 13, }, end: Position { line: 63, column: 27, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 63, column: 28, }, end: Position { line: 63, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 63, column: 35, }, end: Position { line: 63, column: 38, }, }, }, ), Raw( PartRaw { content: "hvm", span: Span { start: Position { line: 63, column: 39, }, end: Position { line: 63, column: 42, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ec2.hvm = true;\n", span: Span { start: Position { line: 64, column: 1, }, end: Position { line: 65, column: 11, }, }, }, ), ], span: Span { start: Position { line: 63, column: 43, }, end: Position { line: 65, column: 13, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n ", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 66, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 66, column: 13, }, end: Position { line: 66, column: 27, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 66, column: 28, }, end: Position { line: 66, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 66, column: 35, }, end: Position { line: 66, column: 38, }, }, }, ), Raw( PartRaw { content: "efi", span: Span { start: Position { line: 66, column: 39, }, end: Position { line: 66, column: 42, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ec2.efi = true;\n", span: Span { start: Position { line: 67, column: 1, }, end: Position { line: 68, column: 11, }, }, }, ), ], span: Span { start: Position { line: 66, column: 43, }, end: Position { line: 68, column: 13, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n ", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 69, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 69, column: 13, }, end: Position { line: 69, column: 27, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 69, column: 28, }, end: Position { line: 69, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 69, column: 35, }, end: Position { line: 69, column: 38, }, }, }, ), Raw( PartRaw { content: "zfs", span: Span { start: Position { line: 69, column: 39, }, end: Position { line: 69, column: 42, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 69, column: 43, }, end: Position { line: 69, column: 49, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ec2.zfs.enable = true;\nnetworking.hostId = \"", span: Span { start: Position { line: 70, column: 1, }, end: Position { line: 71, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 71, column: 36, }, end: Position { line: 71, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 71, column: 43, }, end: Position { line: 71, column: 53, }, }, }, ), Raw( PartRaw { content: "hostId", span: Span { start: Position { line: 71, column: 54, }, end: Position { line: 71, column: 60, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\";\n", span: Span { start: Position { line: 70, column: 1, }, end: Position { line: 72, column: 11, }, }, }, ), ], span: Span { start: Position { line: 69, column: 50, }, end: Position { line: 72, column: 13, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n}\n", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 74, column: 7, }, }, }, ), ], span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 74, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zfsBuilder", span: Span { start: Position { line: 76, column: 5, }, end: Position { line: 76, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 76, column: 18, }, end: Position { line: 76, column: 24, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../lib/make-multi-disk-zfs-image.nix", span: Span { start: Position { line: 76, column: 25, }, end: Position { line: 76, column: 67, }, }, }, ), ], span: Span { start: Position { line: 76, column: 25, }, end: Position { line: 76, column: 67, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 77, column: 15, }, end: Position { line: 77, column: 18, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 77, column: 19, }, end: Position { line: 77, column: 25, }, }, }, ), Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 77, column: 26, }, end: Position { line: 77, column: 36, }, }, }, ), ], span: Span { start: Position { line: 76, column: 69, }, end: Position { line: 77, column: 37, }, }, }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 78, column: 16, }, end: Position { line: 78, column: 19, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "contents", span: Span { start: Position { line: 78, column: 21, }, end: Position { line: 78, column: 29, }, }, }, ), Raw( PartRaw { content: "format", span: Span { start: Position { line: 78, column: 30, }, end: Position { line: 78, column: 36, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 78, column: 37, }, end: Position { line: 78, column: 41, }, }, }, ), ], span: Span { start: Position { line: 76, column: 69, }, end: Position { line: 78, column: 42, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 79, column: 7, }, end: Position { line: 79, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 79, column: 14, }, end: Position { line: 79, column: 20, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../..", span: Span { start: Position { line: 79, column: 21, }, end: Position { line: 79, column: 32, }, }, }, ), ], span: Span { start: Position { line: 79, column: 21, }, end: Position { line: 79, column: 32, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 79, column: 44, }, end: Position { line: 79, column: 48, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 79, column: 50, }, end: Position { line: 79, column: 56, }, }, }, ), ], span: Span { start: Position { line: 79, column: 34, }, end: Position { line: 79, column: 57, }, }, }, ), ], span: Span { start: Position { line: 79, column: 33, }, end: Position { line: 79, column: 59, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "includeChannel", span: Span { start: Position { line: 81, column: 7, }, end: Position { line: 81, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 81, column: 24, }, end: Position { line: 81, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bootSize", span: Span { start: Position { line: 83, column: 7, }, end: Position { line: 83, column: 15, }, }, }, ), ], to: Integer( Integer { value: "1000", span: Span { start: Position { line: 83, column: 18, }, end: Position { line: 83, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootSize", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 85, column: 18, }, end: Position { line: 85, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sizeMB", span: Span { start: Position { line: 85, column: 22, }, end: Position { line: 85, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootPoolProperties", span: Span { start: Position { line: 86, column: 7, }, end: Position { line: 86, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ashift", span: Span { start: Position { line: 87, column: 9, }, end: Position { line: 87, column: 15, }, }, }, ), ], to: Integer( Integer { value: "12", span: Span { start: Position { line: 87, column: 18, }, end: Position { line: 87, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "autoexpand", span: Span { start: Position { line: 88, column: 9, }, end: Position { line: 88, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on", span: Span { start: Position { line: 88, column: 23, }, end: Position { line: 88, column: 25, }, }, }, ), ], span: Span { start: Position { line: 88, column: 22, }, end: Position { line: 88, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 86, column: 28, }, end: Position { line: 89, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "datasets", span: Span { start: Position { line: 91, column: 7, }, end: Position { line: 91, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 91, column: 18, }, end: Position { line: 91, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 91, column: 25, }, end: Position { line: 91, column: 28, }, }, }, ), Raw( PartRaw { content: "zfs", span: Span { start: Position { line: 91, column: 29, }, end: Position { line: 91, column: 32, }, }, }, ), Raw( PartRaw { content: "datasets", span: Span { start: Position { line: 91, column: 33, }, end: Position { line: 91, column: 41, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postVM", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: " extension=", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 94, column: 19, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 94, column: 22, }, }, }, ), Raw( PartRaw { content: "{rootDiskImage##*.}\n friendlyName=$out/", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 95, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 95, column: 29, }, end: Position { line: 95, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 95, column: 33, }, end: Position { line: 95, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n rootDisk=\"$friendlyName.root.$extension\"\n bootDisk=\"$friendlyName.boot.$extension\"\n mv \"$rootDiskImage\" \"$rootDisk\"\n mv \"$bootDiskImage\" \"$bootDisk\"\n\n mkdir -p $out/nix-support\n echo \"file ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 102, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 102, column: 22, }, end: Position { line: 102, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 102, column: 26, }, end: Position { line: 102, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " $bootDisk\" >> $out/nix-support/hydra-build-products\n echo \"file ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 103, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 103, column: 22, }, end: Position { line: 103, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 103, column: 26, }, end: Position { line: 103, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " $rootDisk\" >> $out/nix-support/hydra-build-products\n\n", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 105, column: 8, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 105, column: 10, }, end: Position { line: 105, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 105, column: 15, }, end: Position { line: 105, column: 17, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq -n \\\n --arg system_label ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 106, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 106, column: 31, }, end: Position { line: 106, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 106, column: 35, }, end: Position { line: 106, column: 49, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 106, column: 50, }, end: Position { line: 106, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 106, column: 57, }, end: Position { line: 106, column: 63, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 106, column: 64, }, end: Position { line: 106, column: 69, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 106, column: 70, }, end: Position { line: 106, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg system ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 107, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 107, column: 25, }, end: Position { line: 107, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 107, column: 29, }, end: Position { line: 107, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 107, column: 44, }, end: Position { line: 107, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 107, column: 49, }, end: Position { line: 107, column: 55, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 107, column: 56, }, end: Position { line: 107, column: 68, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 107, column: 69, }, end: Position { line: 107, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg root_logical_bytes \"$(", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 108, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 108, column: 40, }, end: Position { line: 108, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "qemu", span: Span { start: Position { line: 108, column: 45, }, end: Position { line: 108, column: 49, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/qemu-img info --output json \"$rootDisk\" | ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 108, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 108, column: 99, }, end: Position { line: 108, column: 103, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 108, column: 104, }, end: Position { line: 108, column: 106, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq '.\"virtual-size\"')\" \\\n --arg boot_logical_bytes \"$(", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 109, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 109, column: 40, }, end: Position { line: 109, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "qemu", span: Span { start: Position { line: 109, column: 45, }, end: Position { line: 109, column: 49, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/qemu-img info --output json \"$bootDisk\" | ", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 109, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 109, column: 99, }, end: Position { line: 109, column: 103, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 109, column: 104, }, end: Position { line: 109, column: 106, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq '.\"virtual-size\"')\" \\\n --arg boot_mode \"", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 110, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "amiBootMode", span: Span { start: Position { line: 110, column: 29, }, end: Position { line: 110, column: 40, }, }, }, ), }, ), Raw( PartRaw { content: "\" \\\n --arg root \"$rootDisk\" \\\n --arg boot \"$bootDisk\" \\\n '{}\n | .label = $system_label\n | .boot_mode = $boot_mode\n | .system = $system\n | .disks.boot.logical_bytes = $boot_logical_bytes\n | .disks.boot.file = $boot\n | .disks.root.logical_bytes = $root_logical_bytes\n | .disks.root.file = $root\n ' > $out/nix-support/image-info.json\n", span: Span { start: Position { line: 94, column: 1, }, end: Position { line: 122, column: 7, }, }, }, ), ], span: Span { start: Position { line: 93, column: 16, }, end: Position { line: 122, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 76, column: 68, }, end: Position { line: 123, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extBuilder", span: Span { start: Position { line: 125, column: 5, }, end: Position { line: 125, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 125, column: 18, }, end: Position { line: 125, column: 24, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../lib/make-disk-image.nix", span: Span { start: Position { line: 125, column: 25, }, end: Position { line: 125, column: 57, }, }, }, ), ], span: Span { start: Position { line: 125, column: 25, }, end: Position { line: 125, column: 57, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 126, column: 15, }, end: Position { line: 126, column: 18, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 126, column: 19, }, end: Position { line: 126, column: 25, }, }, }, ), Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 126, column: 26, }, end: Position { line: 126, column: 36, }, }, }, ), ], span: Span { start: Position { line: 125, column: 59, }, end: Position { line: 126, column: 37, }, }, }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 128, column: 16, }, end: Position { line: 128, column: 19, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "contents", span: Span { start: Position { line: 128, column: 21, }, end: Position { line: 128, column: 29, }, }, }, ), Raw( PartRaw { content: "format", span: Span { start: Position { line: 128, column: 30, }, end: Position { line: 128, column: 36, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 128, column: 37, }, end: Position { line: 128, column: 41, }, }, }, ), ], span: Span { start: Position { line: 125, column: 59, }, end: Position { line: 128, column: 42, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 129, column: 7, }, end: Position { line: 129, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 129, column: 14, }, end: Position { line: 129, column: 20, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../..", span: Span { start: Position { line: 129, column: 21, }, end: Position { line: 129, column: 32, }, }, }, ), ], span: Span { start: Position { line: 129, column: 21, }, end: Position { line: 129, column: 32, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 129, column: 44, }, end: Position { line: 129, column: 48, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 129, column: 50, }, end: Position { line: 129, column: 56, }, }, }, ), ], span: Span { start: Position { line: 129, column: 34, }, end: Position { line: 129, column: 57, }, }, }, ), ], span: Span { start: Position { line: 129, column: 33, }, end: Position { line: 129, column: 59, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fsType", span: Span { start: Position { line: 131, column: 7, }, end: Position { line: 131, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "ext4", span: Span { start: Position { line: 131, column: 17, }, end: Position { line: 131, column: 21, }, }, }, ), ], span: Span { start: Position { line: 131, column: 16, }, end: Position { line: 131, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "partitionTableType", span: Span { start: Position { line: 132, column: 7, }, end: Position { line: 132, column: 25, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 132, column: 31, }, end: Position { line: 132, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 132, column: 38, }, end: Position { line: 132, column: 41, }, }, }, ), Raw( PartRaw { content: "efi", span: Span { start: Position { line: 132, column: 42, }, end: Position { line: 132, column: 45, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "efi", span: Span { start: Position { line: 132, column: 52, }, end: Position { line: 132, column: 55, }, }, }, ), ], span: Span { start: Position { line: 132, column: 51, }, end: Position { line: 132, column: 56, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 133, column: 36, }, end: Position { line: 133, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 133, column: 43, }, end: Position { line: 133, column: 46, }, }, }, ), Raw( PartRaw { content: "hvm", span: Span { start: Position { line: 133, column: 47, }, end: Position { line: 133, column: 50, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "legacy+gpt", span: Span { start: Position { line: 133, column: 57, }, end: Position { line: 133, column: 67, }, }, }, ), ], span: Span { start: Position { line: 133, column: 56, }, end: Position { line: 133, column: 68, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "none", span: Span { start: Position { line: 134, column: 34, }, end: Position { line: 134, column: 38, }, }, }, ), ], span: Span { start: Position { line: 134, column: 33, }, end: Position { line: 134, column: 39, }, }, }, ), span: Span { start: Position { line: 133, column: 33, }, end: Position { line: 134, column: 39, }, }, }, ), span: Span { start: Position { line: 132, column: 28, }, end: Position { line: 134, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "diskSize", span: Span { start: Position { line: 136, column: 7, }, end: Position { line: 136, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 136, column: 18, }, end: Position { line: 136, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sizeMB", span: Span { start: Position { line: 136, column: 22, }, end: Position { line: 136, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postVM", span: Span { start: Position { line: 138, column: 7, }, end: Position { line: 138, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: " extension=", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 139, column: 19, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 139, column: 22, }, }, }, ), Raw( PartRaw { content: "{diskImage##*.}\n friendlyName=$out/", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 140, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 140, column: 29, }, end: Position { line: 140, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 140, column: 33, }, end: Position { line: 140, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ".$extension\n mv \"$diskImage\" \"$friendlyName\"\n diskImage=$friendlyName\n\n mkdir -p $out/nix-support\n echo \"file ", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 145, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 145, column: 22, }, end: Position { line: 145, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 145, column: 26, }, end: Position { line: 145, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " $diskImage\" >> $out/nix-support/hydra-build-products\n\n", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 147, column: 8, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 147, column: 10, }, end: Position { line: 147, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 147, column: 15, }, end: Position { line: 147, column: 17, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq -n \\\n --arg system_label ", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 148, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 148, column: 31, }, end: Position { line: 148, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 148, column: 35, }, end: Position { line: 148, column: 49, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 148, column: 50, }, end: Position { line: 148, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 148, column: 57, }, end: Position { line: 148, column: 63, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 148, column: 64, }, end: Position { line: 148, column: 69, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 148, column: 70, }, end: Position { line: 148, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg system ", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 149, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 149, column: 25, }, end: Position { line: 149, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 149, column: 29, }, end: Position { line: 149, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 149, column: 44, }, end: Position { line: 149, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 149, column: 49, }, end: Position { line: 149, column: 55, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 149, column: 56, }, end: Position { line: 149, column: 68, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 149, column: 69, }, end: Position { line: 149, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg logical_bytes \"$(", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 150, column: 33, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 150, column: 35, }, end: Position { line: 150, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "qemu", span: Span { start: Position { line: 150, column: 40, }, end: Position { line: 150, column: 44, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/qemu-img info --output json \"$diskImage\" | ", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 150, column: 93, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 150, column: 95, }, end: Position { line: 150, column: 99, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 150, column: 100, }, end: Position { line: 150, column: 102, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq '.\"virtual-size\"')\" \\\n --arg boot_mode \"", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 151, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "amiBootMode", span: Span { start: Position { line: 151, column: 29, }, end: Position { line: 151, column: 40, }, }, }, ), }, ), Raw( PartRaw { content: "\" \\\n --arg file \"$diskImage\" \\\n '{}\n | .label = $system_label\n | .boot_mode = $boot_mode\n | .system = $system\n | .logical_bytes = $logical_bytes\n | .file = $file\n | .disks.root.logical_bytes = $logical_bytes\n | .disks.root.file = $file\n ' > $out/nix-support/image-info.json\n", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 162, column: 7, }, }, }, ), ], span: Span { start: Position { line: 138, column: 16, }, end: Position { line: 162, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 125, column: 58, }, end: Position { line: 163, column: 6, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 164, column: 9, }, end: Position { line: 164, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ec2", span: Span { start: Position { line: 164, column: 16, }, end: Position { line: 164, column: 19, }, }, }, ), Raw( PartRaw { content: "zfs", span: Span { start: Position { line: 164, column: 20, }, end: Position { line: 164, column: 23, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 164, column: 24, }, end: Position { line: 164, column: 30, }, }, }, ), ], default: None, }, ), then: Identifier( Identifier { id: "zfsBuilder", span: Span { start: Position { line: 164, column: 36, }, end: Position { line: 164, column: 46, }, }, }, ), else_: Identifier( Identifier { id: "extBuilder", span: Span { start: Position { line: 164, column: 52, }, end: Position { line: 164, column: 62, }, }, }, ), span: Span { start: Position { line: 164, column: 6, }, end: Position { line: 164, column: 62, }, }, }, ), span: Span { start: Position { line: 58, column: 37, }, end: Position { line: 164, column: 62, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 4, }, end: Position { line: 165, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 165, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 165, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 165, column: 2, }, }, }, )