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: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 5, column: 12, }, end: Position { line: 5, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 5, column: 17, }, end: Position { line: 5, column: 25, }, }, }, ), Raw( PartRaw { content: "types", span: Span { start: Position { line: 5, column: 26, }, end: Position { line: 5, column: 31, }, }, }, ), ], span: Span { start: Position { line: 4, column: 4, }, end: Position { line: 5, column: 32, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "copyChannel", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 6, column: 17, }, end: Position { line: 6, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openstackImage", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imageBootMode", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 16, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 8, column: 22, }, end: Position { line: 8, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openstack", span: Span { start: Position { line: 8, column: 29, }, end: Position { line: 8, column: 38, }, }, }, ), Raw( PartRaw { content: "efi", span: Span { start: Position { line: 8, column: 39, }, end: Position { line: 8, column: 42, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "uefi", span: Span { start: Position { line: 8, column: 49, }, end: Position { line: 8, column: 53, }, }, }, ), ], span: Span { start: Position { line: 8, column: 48, }, end: Position { line: 8, column: 54, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "legacy-bios", span: Span { start: Position { line: 8, column: 61, }, end: Position { line: 8, column: 72, }, }, }, ), ], span: Span { start: Position { line: 8, column: 60, }, end: Position { line: 8, column: 73, }, }, }, ), span: Span { start: Position { line: 8, column: 19, }, end: Position { line: 8, column: 73, }, }, }, ), }, ), ], 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: BinaryOperation( BinaryOperation { left: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../modules/virtualisation/openstack-config.nix", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 57, }, }, }, ), ], span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 57, }, }, }, ), ], span: Span { start: Position { line: 11, column: 13, }, end: Position { line: 13, column: 4, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optional", span: Span { start: Position { line: 13, column: 13, }, end: Position { line: 13, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "copyChannel", span: Span { start: Position { line: 13, column: 22, }, end: Position { line: 13, column: 33, }, }, }, ), Path( Path { parts: [ Raw( PartRaw { content: "../../../modules/installer/cd-dvd/channel.nix", span: Span { start: Position { line: 13, column: 34, }, end: Position { line: 13, column: 79, }, }, }, ), ], span: Span { start: Position { line: 13, column: 34, }, end: Position { line: 13, column: 79, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 10, }, }, }, ), Raw( PartRaw { content: "openstackImage", span: Span { start: Position { line: 16, column: 11, }, end: Position { line: 16, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 17, column: 12, }, end: Position { line: 17, column: 20, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 14, }, end: Position { line: 18, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 18, column: 20, }, end: Position { line: 18, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 19, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 25, }, end: Position { line: 19, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The name of the generated derivation", span: Span { start: Position { line: 19, column: 32, }, end: Position { line: 19, column: 68, }, }, }, ), ], span: Span { start: Position { line: 19, column: 31, }, end: Position { line: 19, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixos-openstack-image-", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 20, column: 42, }, end: Position { line: 20, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 20, column: 49, }, end: Position { line: 20, column: 55, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 20, column: 56, }, end: Position { line: 20, column: 61, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 20, column: 62, }, end: Position { line: 20, column: 67, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 69, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 20, column: 71, }, end: Position { line: 20, column: 75, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 20, column: 76, }, end: Position { line: 20, column: 82, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 20, column: 83, }, end: Position { line: 20, column: 95, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 20, column: 96, }, end: Position { line: 20, column: 102, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 20, column: 17, }, end: Position { line: 20, column: 104, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 21, }, end: Position { line: 21, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sizeMB", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 24, column: 14, }, end: Position { line: 24, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 24, column: 20, }, end: Position { line: 24, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 14, }, }, }, ), ], to: Integer( Integer { value: "8192", span: Span { start: Position { line: 25, column: 17, }, end: Position { line: 25, column: 21, }, }, }, ), }, ), 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 size in MB of the image", span: Span { start: Position { line: 26, column: 32, }, end: Position { line: 26, column: 59, }, }, }, ), ], span: Span { start: Position { line: 26, column: 31, }, end: Position { line: 26, column: 60, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 23, }, end: Position { line: 27, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 29, column: 14, }, end: Position { line: 29, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 30, column: 14, }, end: Position { line: 30, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 30, column: 20, }, end: Position { line: 30, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "raw", span: Span { start: Position { line: 30, column: 28, }, end: Position { line: 30, column: 31, }, }, }, ), ], span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 30, column: 32, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "qcow2", span: Span { start: Position { line: 30, column: 34, }, end: Position { line: 30, column: 39, }, }, }, ), ], span: Span { start: Position { line: 30, column: 33, }, end: Position { line: 30, column: 40, }, }, }, ), ], span: Span { start: Position { line: 30, column: 25, }, end: Position { line: 30, column: 42, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "qcow2", span: Span { start: Position { line: 31, column: 18, }, end: Position { line: 31, column: 23, }, }, }, ), ], span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 21, }, end: Position { line: 32, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 25, }, end: Position { line: 32, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The image format to output", span: Span { start: Position { line: 32, column: 32, }, end: Position { line: 32, column: 58, }, }, }, ), ], span: Span { start: Position { line: 32, column: 31, }, end: Position { line: 32, column: 59, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 29, column: 23, }, end: Position { line: 33, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 28, }, end: Position { line: 34, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 36, column: 3, }, end: Position { line: 36, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "documentation", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 18, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 37, column: 19, }, end: Position { line: 37, column: 25, }, }, }, ), ], to: Identifier( Identifier { id: "copyChannel", span: Span { start: Position { line: 37, column: 28, }, end: Position { line: 37, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "openstack", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "efi", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 10, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 39, column: 13, }, end: Position { line: 39, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "zfs", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 41, column: 18, }, end: Position { line: 41, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "datasets", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "tank/system/root", span: Span { start: Position { line: 43, column: 12, }, end: Position { line: 43, column: 28, }, }, }, ), ], span: Span { start: Position { line: 43, column: 11, }, end: Position { line: 43, column: 29, }, }, }, ), }, ), Raw( PartRaw { content: "mount", span: Span { start: Position { line: 43, column: 30, }, end: Position { line: 43, column: 35, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 43, column: 39, }, end: Position { line: 43, column: 40, }, }, }, ), ], span: Span { start: Position { line: 43, column: 38, }, end: Position { line: 43, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "tank/system/var", span: Span { start: Position { line: 44, column: 12, }, end: Position { line: 44, column: 27, }, }, }, ), ], span: Span { start: Position { line: 44, column: 11, }, end: Position { line: 44, column: 28, }, }, }, ), }, ), Raw( PartRaw { content: "mount", span: Span { start: Position { line: 44, column: 29, }, end: Position { line: 44, column: 34, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var", span: Span { start: Position { line: 44, column: 38, }, end: Position { line: 44, column: 42, }, }, }, ), ], span: Span { start: Position { line: 44, column: 37, }, end: Position { line: 44, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "tank/local/nix", span: Span { start: Position { line: 45, column: 12, }, end: Position { line: 45, column: 26, }, }, }, ), ], span: Span { start: Position { line: 45, column: 11, }, end: Position { line: 45, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "mount", span: Span { start: Position { line: 45, column: 28, }, end: Position { line: 45, column: 33, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/nix", span: Span { start: Position { line: 45, column: 37, }, end: Position { line: 45, column: 41, }, }, }, ), ], span: Span { start: Position { line: 45, column: 36, }, end: Position { line: 45, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "tank/user/home", span: Span { start: Position { line: 46, column: 12, }, end: Position { line: 46, column: 26, }, }, }, ), ], span: Span { start: Position { line: 46, column: 11, }, end: Position { line: 46, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "mount", span: Span { start: Position { line: 46, column: 28, }, end: Position { line: 46, column: 33, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/home", span: Span { start: Position { line: 46, column: 37, }, end: Position { line: 46, column: 42, }, }, }, ), ], span: Span { start: Position { line: 46, column: 36, }, end: Position { line: 46, column: 43, }, }, }, ), }, ), ], span: Span { start: Position { line: 42, column: 20, }, end: Position { line: 47, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 40, column: 13, }, end: Position { line: 48, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 17, }, end: Position { line: 49, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 51, column: 5, }, end: Position { line: 51, column: 11, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 51, column: 12, }, end: Position { line: 51, column: 17, }, }, }, ), Raw( PartRaw { content: "openstackImage", span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 32, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 51, column: 35, }, end: Position { line: 51, column: 41, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../lib/make-single-disk-zfs-image.nix", span: Span { start: Position { line: 51, column: 42, }, end: Position { line: 51, column: 85, }, }, }, ), ], span: Span { start: Position { line: 51, column: 42, }, end: Position { line: 51, column: 85, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 52, column: 15, }, end: Position { line: 52, column: 18, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 25, }, }, }, ), ], span: Span { start: Position { line: 51, column: 87, }, end: Position { line: 52, column: 26, }, }, }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 53, column: 16, }, end: Position { line: 53, column: 19, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "contents", span: Span { start: Position { line: 53, column: 21, }, end: Position { line: 53, column: 29, }, }, }, ), Raw( PartRaw { content: "format", span: Span { start: Position { line: 53, column: 30, }, end: Position { line: 53, column: 36, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 53, column: 37, }, end: Position { line: 53, column: 41, }, }, }, ), ], span: Span { start: Position { line: 51, column: 87, }, end: Position { line: 53, column: 42, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 54, column: 7, }, end: Position { line: 54, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 54, column: 14, }, end: Position { line: 54, column: 20, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../..", span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 32, }, }, }, ), ], span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 32, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 54, column: 44, }, end: Position { line: 54, column: 48, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 54, column: 50, }, end: Position { line: 54, column: 56, }, }, }, ), ], span: Span { start: Position { line: 54, column: 34, }, end: Position { line: 54, column: 57, }, }, }, ), ], span: Span { start: Position { line: 54, column: 33, }, end: Position { line: 54, column: 59, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 56, column: 7, }, end: Position { line: 56, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 56, column: 20, }, end: Position { line: 56, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 56, column: 25, }, end: Position { line: 56, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "configuration.nix", span: Span { start: Position { line: 56, column: 36, }, end: Position { line: 56, column: 53, }, }, }, ), ], span: Span { start: Position { line: 56, column: 35, }, end: Position { line: 56, column: 54, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{ modulesPath, ... }: {\n imports = [ \"", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 26, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 29, }, }, }, ), Raw( PartRaw { content: "{modulesPath}/virtualisation/openstack-config.nix\" ];\n openstack.zfs.enable = true;\n}\n", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 62, column: 9, }, }, }, ), ], span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 62, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "includeChannel", span: Span { start: Position { line: 64, column: 7, }, end: Position { line: 64, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "copyChannel", span: Span { start: Position { line: 64, column: 24, }, end: Position { line: 64, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bootSize", span: Span { start: Position { line: 66, column: 7, }, end: Position { line: 66, column: 15, }, }, }, ), ], to: Integer( Integer { value: "1000", span: Span { start: Position { line: 66, column: 18, }, end: Position { line: 66, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootSize", span: Span { start: Position { line: 68, column: 7, }, end: Position { line: 68, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 68, column: 18, }, end: Position { line: 68, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sizeMB", span: Span { start: Position { line: 68, column: 22, }, end: Position { line: 68, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootPoolProperties", span: Span { start: Position { line: 69, column: 7, }, end: Position { line: 69, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ashift", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 15, }, }, }, ), ], to: Integer( Integer { value: "12", span: Span { start: Position { line: 70, column: 18, }, end: Position { line: 70, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "autoexpand", span: Span { start: Position { line: 71, column: 9, }, end: Position { line: 71, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on", span: Span { start: Position { line: 71, column: 23, }, end: Position { line: 71, column: 25, }, }, }, ), ], span: Span { start: Position { line: 71, column: 22, }, end: Position { line: 71, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 69, column: 28, }, end: Position { line: 72, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "datasets", span: Span { start: Position { line: 74, column: 7, }, end: Position { line: 74, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 74, column: 18, }, end: Position { line: 74, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openstack", span: Span { start: Position { line: 74, column: 25, }, end: Position { line: 74, column: 34, }, }, }, ), Raw( PartRaw { content: "zfs", span: Span { start: Position { line: 74, column: 35, }, end: Position { line: 74, column: 38, }, }, }, ), Raw( PartRaw { content: "datasets", span: Span { start: Position { line: 74, column: 39, }, end: Position { line: 74, column: 47, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postVM", span: Span { start: Position { line: 76, column: 7, }, end: Position { line: 76, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: " extension=", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 77, column: 20, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 77, column: 23, }, }, }, ), Raw( PartRaw { content: "{rootDiskImage##*.}\n friendlyName=$out/", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 78, column: 28, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 78, column: 30, }, end: Position { line: 78, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 78, column: 34, }, end: Position { line: 78, column: 38, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n rootDisk=\"$friendlyName.root.$extension\"\n mv \"$rootDiskImage\" \"$rootDisk\"\n\n mkdir -p $out/nix-support\n echo \"file ", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 83, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 83, column: 23, }, end: Position { line: 83, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 83, column: 27, }, end: Position { line: 83, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " $rootDisk\" >> $out/nix-support/hydra-build-products\n\n", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 85, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 85, column: 11, }, end: Position { line: 85, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 85, column: 16, }, end: Position { line: 85, column: 18, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq -n \\\n --arg system_label ", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 86, column: 30, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 86, column: 32, }, end: Position { line: 86, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 86, column: 36, }, end: Position { line: 86, column: 50, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 86, column: 51, }, end: Position { line: 86, column: 57, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 86, column: 58, }, end: Position { line: 86, column: 64, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 86, column: 65, }, end: Position { line: 86, column: 70, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 86, column: 71, }, end: Position { line: 86, column: 76, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg system ", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 87, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 87, column: 26, }, end: Position { line: 87, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeShellArg", span: Span { start: Position { line: 87, column: 30, }, end: Position { line: 87, column: 44, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 87, column: 45, }, end: Position { line: 87, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 87, column: 50, }, end: Position { line: 87, column: 56, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 87, column: 57, }, end: Position { line: 87, column: 69, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 87, column: 70, }, end: Position { line: 87, column: 76, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --arg root_logical_bytes \"$(", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 88, column: 39, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 88, column: 41, }, end: Position { line: 88, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "qemu", span: Span { start: Position { line: 88, column: 46, }, end: Position { line: 88, column: 50, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/qemu-img info --output json \"$rootDisk\" | ", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 88, column: 98, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 88, column: 100, }, end: Position { line: 88, column: 104, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 88, column: 105, }, end: Position { line: 88, column: 107, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq '.\"virtual-size\"')\" \\\n --arg boot_mode \"", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 89, column: 28, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "imageBootMode", span: Span { start: Position { line: 89, column: 30, }, end: Position { line: 89, column: 43, }, }, }, ), }, ), Raw( PartRaw { content: "\" \\\n --arg root \"$rootDisk\" \\\n '{}\n | .label = $system_label\n | .boot_mode = $boot_mode\n | .system = $system\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: 77, column: 1, }, end: Position { line: 98, column: 7, }, }, }, ), ], span: Span { start: Position { line: 76, column: 16, }, end: Position { line: 98, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 51, column: 86, }, end: Position { line: 99, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 12, }, end: Position { line: 100, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 101, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 101, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 101, column: 2, }, }, }, )