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: 16, column: 6, }, end: Position { line: 16, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootfsImage", span: Span { start: Position { line: 19, column: 3, }, end: Position { line: 19, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "callPackage", span: Span { start: Position { line: 19, column: 22, }, end: Position { line: 19, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../lib/make-ext4-fs.nix", span: Span { start: Position { line: 19, column: 34, }, end: Position { line: 19, column: 63, }, }, }, ), ], span: Span { start: Position { line: 19, column: 34, }, end: Position { line: 19, column: 63, }, }, }, ), BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 20, column: 14, }, end: Position { line: 20, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 20, column: 21, }, end: Position { line: 20, column: 28, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "storePaths", span: Span { start: Position { line: 20, column: 30, }, end: Position { line: 20, column: 40, }, }, }, ), ], span: Span { start: Position { line: 19, column: 66, }, end: Position { line: 20, column: 41, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 18, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 21, column: 21, }, end: Position { line: 21, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 21, column: 28, }, end: Position { line: 21, column: 35, }, }, }, ), Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 21, column: 36, }, end: Position { line: 21, column: 49, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateImageCommands", span: Span { start: Position { line: 22, column: 5, }, end: Position { line: 22, column: 26, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 22, column: 29, }, end: Position { line: 22, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 22, column: 36, }, end: Position { line: 22, column: 43, }, }, }, ), Raw( PartRaw { content: "populateRootCommands", span: Span { start: Position { line: 22, column: 44, }, end: Position { line: 22, column: 64, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "volumeLabel", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "NIXOS_SD", span: Span { start: Position { line: 23, column: 20, }, end: Position { line: 23, column: 28, }, }, }, ), ], span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 65, }, end: Position { line: 24, column: 4, }, }, }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 24, column: 8, }, end: Position { line: 24, column: 21, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 24, column: 23, }, end: Position { line: 24, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 24, column: 30, }, end: Position { line: 24, column: 37, }, }, }, ), Raw( PartRaw { content: "rootPartitionUUID", span: Span { start: Position { line: 24, column: 38, }, end: Position { line: 24, column: 55, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 24, column: 59, }, end: Position { line: 24, column: 63, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "uuid", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 25, column: 12, }, end: Position { line: 25, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 25, column: 19, }, end: Position { line: 25, column: 26, }, }, }, ), Raw( PartRaw { content: "rootPartitionUUID", span: Span { start: Position { line: 25, column: 27, }, end: Position { line: 25, column: 44, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 24, column: 65, }, end: Position { line: 26, column: 4, }, }, }, ), ], }, ), }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 29, column: 3, }, end: Position { line: 29, column: 10, }, }, }, ), ], to: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkRemovedOptionModule", span: Span { start: Position { line: 30, column: 6, }, end: Position { line: 30, column: 27, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 30, column: 31, }, end: Position { line: 30, column: 38, }, }, }, ), ], span: Span { start: Position { line: 30, column: 30, }, end: Position { line: 30, column: 39, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "bootPartitionID", span: Span { start: Position { line: 30, column: 41, }, end: Position { line: 30, column: 56, }, }, }, ), ], span: Span { start: Position { line: 30, column: 40, }, end: Position { line: 30, column: 57, }, }, }, ), ], span: Span { start: Position { line: 30, column: 28, }, end: Position { line: 30, column: 59, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "The FAT partition for SD image now only holds the Raspberry Pi firmware files. Use firmwarePartitionID to configure that partition's ID.", span: Span { start: Position { line: 30, column: 61, }, end: Position { line: 30, column: 197, }, }, }, ), ], span: Span { start: Position { line: 30, column: 60, }, end: Position { line: 30, column: 198, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkRemovedOptionModule", span: Span { start: Position { line: 31, column: 6, }, end: Position { line: 31, column: 27, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 31, column: 31, }, end: Position { line: 31, column: 38, }, }, }, ), ], span: Span { start: Position { line: 31, column: 30, }, end: Position { line: 31, column: 39, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "bootSize", span: Span { start: Position { line: 31, column: 41, }, end: Position { line: 31, column: 49, }, }, }, ), ], span: Span { start: Position { line: 31, column: 40, }, end: Position { line: 31, column: 50, }, }, }, ), ], span: Span { start: Position { line: 31, column: 28, }, end: Position { line: 31, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "The boot files for SD image have been moved to the main ext4 partition. The FAT partition now only holds the Raspberry Pi firmware files. Changing its size may not be required.", span: Span { start: Position { line: 31, column: 54, }, end: Position { line: 31, column: 230, }, }, }, ), ], span: Span { start: Position { line: 31, column: 53, }, end: Position { line: 31, column: 231, }, }, }, ), ], }, ), Path( Path { parts: [ Raw( PartRaw { content: "../../profiles/all-hardware.nix", span: Span { start: Position { line: 32, column: 5, }, end: Position { line: 32, column: 36, }, }, }, ), ], span: Span { start: Position { line: 32, column: 5, }, end: Position { line: 32, column: 36, }, }, }, ), ], span: Span { start: Position { line: 29, column: 13, }, end: Position { line: 33, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 10, }, }, }, ), Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 35, column: 11, }, end: Position { line: 35, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imageName", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 36, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 37, column: 20, }, end: Position { line: 37, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 37, column: 27, }, end: Position { line: 37, column: 34, }, }, }, ), Raw( PartRaw { content: "imageBaseName", span: Span { start: Position { line: 37, column: 35, }, end: Position { line: 37, column: 48, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 37, column: 18, }, end: Position { line: 37, column: 50, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 37, column: 52, }, end: Position { line: 37, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 37, column: 59, }, end: Position { line: 37, column: 65, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 37, column: 66, }, end: Position { line: 37, column: 71, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 37, column: 72, }, end: Position { line: 37, column: 77, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 37, column: 18, }, end: Position { line: 37, column: 79, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 37, column: 81, }, end: Position { line: 37, column: 85, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 37, column: 86, }, end: Position { line: 37, column: 92, }, }, }, ), Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 37, column: 93, }, end: Position { line: 37, column: 105, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 37, column: 106, }, end: Position { line: 37, column: 112, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ".img", span: Span { start: Position { line: 37, column: 18, }, end: Position { line: 37, column: 117, }, }, }, ), ], span: Span { start: Position { line: 37, column: 17, }, end: Position { line: 37, column: 118, }, }, }, ), }, ), 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: "Name of the generated image file.\n", span: Span { start: Position { line: 39, column: 1, }, end: Position { line: 40, column: 7, }, }, }, ), ], span: Span { start: Position { line: 38, column: 31, }, end: Position { line: 40, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 26, }, end: Position { line: 41, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imageBaseName", span: Span { start: Position { line: 43, column: 5, }, end: Position { line: 43, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixos-sd-image", span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 32, }, }, }, ), ], span: Span { start: Position { line: 44, column: 17, }, end: Position { line: 44, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 45, column: 21, }, end: Position { line: 45, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 45, column: 25, }, end: Position { line: 45, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Prefix of the name of the generated image file.\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 47, column: 7, }, }, }, ), ], span: Span { start: Position { line: 45, column: 31, }, end: Position { line: 47, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 43, column: 30, }, end: Position { line: 48, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "storePaths", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 50, column: 18, }, end: Position { line: 50, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 51, column: 19, }, end: Position { line: 51, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 51, column: 26, }, end: Position { line: 51, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "package", span: Span { start: Position { line: 51, column: 33, }, end: Position { line: 51, column: 40, }, }, }, ), ], }, ), span: Span { start: Position { line: 51, column: 14, }, end: Position { line: 51, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "[ pkgs.stdenv ]", span: Span { start: Position { line: 52, column: 36, }, end: Position { line: 52, column: 51, }, }, }, ), ], span: Span { start: Position { line: 52, column: 35, }, end: Position { line: 52, column: 52, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 53, column: 21, }, end: Position { line: 53, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 53, column: 25, }, end: Position { line: 53, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Derivations to be included in the Nix store in the generated SD image.\n", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 55, column: 7, }, }, }, ), ], span: Span { start: Position { line: 53, column: 31, }, end: Position { line: 55, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 27, }, end: Position { line: 56, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwarePartitionOffset", span: Span { start: Position { line: 58, column: 5, }, end: Position { line: 58, column: 28, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 58, column: 31, }, end: Position { line: 58, column: 39, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 59, column: 7, }, end: Position { line: 59, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 59, column: 14, }, end: Position { line: 59, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 59, column: 20, }, end: Position { line: 59, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 60, column: 14, }, }, }, ), ], to: Integer( Integer { value: "8", span: Span { start: Position { line: 60, column: 17, }, end: Position { line: 60, column: 18, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 61, column: 21, }, end: Position { line: 61, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 61, column: 25, }, end: Position { line: 61, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Gap in front of the /boot/firmware partition, in mebibytes (1024×1024\nbytes).\nCan be increased to make more space for boards requiring to dd u-boot\nSPL before actual partitions.\n\nUnless you are building your own images pre-configured with an\ninstalled U-Boot, you can instead opt to delete the existing `FIRMWARE`\npartition, which is used **only** for the Raspberry Pi family of\nhardware.\n", span: Span { start: Position { line: 62, column: 1, }, end: Position { line: 71, column: 7, }, }, }, ), ], span: Span { start: Position { line: 61, column: 31, }, end: Position { line: 71, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 58, column: 40, }, end: Position { line: 72, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwarePartitionID", span: Span { start: Position { line: 74, column: 5, }, end: Position { line: 74, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 74, column: 27, }, end: Position { line: 74, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 75, column: 7, }, end: Position { line: 75, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 75, column: 14, }, end: Position { line: 75, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 75, column: 20, }, end: Position { line: 75, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 76, column: 7, }, end: Position { line: 76, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0x2178694e", span: Span { start: Position { line: 76, column: 18, }, end: Position { line: 76, column: 28, }, }, }, ), ], span: Span { start: Position { line: 76, column: 17, }, end: Position { line: 76, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 77, column: 7, }, end: Position { line: 77, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 77, column: 21, }, end: Position { line: 77, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 77, column: 25, }, end: Position { line: 77, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Volume ID for the /boot/firmware partition on the SD card. This value\nmust be a 32-bit hexadecimal number.\n", span: Span { start: Position { line: 78, column: 1, }, end: Position { line: 80, column: 7, }, }, }, ), ], span: Span { start: Position { line: 77, column: 31, }, end: Position { line: 80, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 74, column: 36, }, end: Position { line: 81, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwarePartitionName", span: Span { start: Position { line: 83, column: 5, }, end: Position { line: 83, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 83, column: 29, }, end: Position { line: 83, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 84, column: 7, }, end: Position { line: 84, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 84, column: 14, }, end: Position { line: 84, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 84, column: 20, }, end: Position { line: 84, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "FIRMWARE", span: Span { start: Position { line: 85, column: 18, }, end: Position { line: 85, column: 26, }, }, }, ), ], span: Span { start: Position { line: 85, column: 17, }, end: Position { line: 85, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 86, column: 7, }, end: Position { line: 86, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 86, column: 21, }, end: Position { line: 86, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 86, column: 25, }, end: Position { line: 86, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Name of the filesystem which holds the boot firmware.\n", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 88, column: 7, }, }, }, ), ], span: Span { start: Position { line: 86, column: 31, }, end: Position { line: 88, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 83, column: 38, }, end: Position { line: 89, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rootPartitionUUID", span: Span { start: Position { line: 91, column: 5, }, end: Position { line: 91, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 91, column: 25, }, end: Position { line: 91, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 92, column: 7, }, end: Position { line: 92, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 92, column: 14, }, end: Position { line: 92, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 92, column: 20, }, end: Position { line: 92, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 92, column: 27, }, end: Position { line: 92, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 92, column: 33, }, end: Position { line: 92, column: 36, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 93, column: 17, }, end: Position { line: 93, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 94, column: 7, }, end: Position { line: 94, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "14e19a7b-0ae0-484d-9d54-43bd6fdc20c7", span: Span { start: Position { line: 94, column: 18, }, end: Position { line: 94, column: 54, }, }, }, ), ], span: Span { start: Position { line: 94, column: 17, }, end: Position { line: 94, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 95, column: 7, }, end: Position { line: 95, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 95, column: 21, }, end: Position { line: 95, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 95, column: 25, }, end: Position { line: 95, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "UUID for the filesystem on the main NixOS partition on the SD card.\n", span: Span { start: Position { line: 96, column: 1, }, end: Position { line: 97, column: 7, }, }, }, ), ], span: Span { start: Position { line: 95, column: 31, }, end: Position { line: 97, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 91, column: 34, }, end: Position { line: 98, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwareSize", span: Span { start: Position { line: 100, column: 5, }, end: Position { line: 100, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 100, column: 20, }, end: Position { line: 100, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 101, column: 7, }, end: Position { line: 101, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 101, column: 14, }, end: Position { line: 101, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 101, column: 20, }, end: Position { line: 101, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 103, column: 7, }, end: Position { line: 103, column: 14, }, }, }, ), ], to: Integer( Integer { value: "30", span: Span { start: Position { line: 103, column: 17, }, end: Position { line: 103, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 104, column: 7, }, end: Position { line: 104, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 104, column: 21, }, end: Position { line: 104, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 104, column: 25, }, end: Position { line: 104, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Size of the /boot/firmware partition, in megabytes.\n", span: Span { start: Position { line: 105, column: 1, }, end: Position { line: 106, column: 7, }, }, }, ), ], span: Span { start: Position { line: 104, column: 31, }, end: Position { line: 106, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 100, column: 29, }, end: Position { line: 107, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateFirmwareCommands", span: Span { start: Position { line: 109, column: 5, }, end: Position { line: 109, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 109, column: 32, }, end: Position { line: 109, column: 40, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 110, column: 7, }, end: Position { line: 110, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 110, column: 17, }, end: Position { line: 110, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "'' cp ${pkgs.myBootLoader}/u-boot.bin firmware/ ''", span: Span { start: Position { line: 110, column: 36, }, end: Position { line: 110, column: 87, }, }, }, ), ], span: Span { start: Position { line: 110, column: 35, }, end: Position { line: 110, column: 88, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 111, column: 7, }, end: Position { line: 111, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 111, column: 21, }, end: Position { line: 111, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 111, column: 25, }, end: Position { line: 111, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Shell commands to populate the ./firmware directory.\nAll files in that directory are copied to the\n/boot/firmware partition on the SD image.\n", span: Span { start: Position { line: 112, column: 1, }, end: Position { line: 115, column: 7, }, }, }, ), ], span: Span { start: Position { line: 111, column: 31, }, end: Position { line: 115, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 109, column: 41, }, end: Position { line: 116, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateRootCommands", span: Span { start: Position { line: 118, column: 5, }, end: Position { line: 118, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 118, column: 28, }, end: Position { line: 118, column: 36, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 119, column: 7, }, end: Position { line: 119, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 119, column: 17, }, end: Position { line: 119, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "''${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot''", span: Span { start: Position { line: 119, column: 36, }, end: Position { line: 119, column: 154, }, }, }, ), ], span: Span { start: Position { line: 119, column: 35, }, end: Position { line: 119, column: 155, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 120, column: 7, }, end: Position { line: 120, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 120, column: 21, }, end: Position { line: 120, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 120, column: 25, }, end: Position { line: 120, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Shell commands to populate the ./files directory.\nAll files in that directory are copied to the\nroot (/) partition on the SD image. Use this to\npopulate the ./files/boot (/boot) directory.\n", span: Span { start: Position { line: 121, column: 1, }, end: Position { line: 125, column: 7, }, }, }, ), ], span: Span { start: Position { line: 120, column: 31, }, end: Position { line: 125, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 118, column: 37, }, end: Position { line: 126, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postBuildCommands", span: Span { start: Position { line: 128, column: 5, }, end: Position { line: 128, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 128, column: 25, }, end: Position { line: 128, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 129, column: 7, }, end: Position { line: 129, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 129, column: 17, }, end: Position { line: 129, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "'' dd if=${pkgs.myBootLoader}/SPL of=$img bs=1024 seek=1 conv=notrunc ''", span: Span { start: Position { line: 129, column: 36, }, end: Position { line: 129, column: 109, }, }, }, ), ], span: Span { start: Position { line: 129, column: 35, }, end: Position { line: 129, column: 110, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 130, column: 7, }, end: Position { line: 130, column: 14, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 130, column: 17, }, end: Position { line: 130, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 131, column: 7, }, end: Position { line: 131, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 131, column: 21, }, end: Position { line: 131, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 131, column: 25, }, end: Position { line: 131, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Shell commands to run after the image is built.\nCan be used for boards requiring to dd u-boot SPL before actual partitions.\n", span: Span { start: Position { line: 132, column: 1, }, end: Position { line: 134, column: 7, }, }, }, ), ], span: Span { start: Position { line: 131, column: 31, }, end: Position { line: 134, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 128, column: 34, }, end: Position { line: 135, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 137, column: 5, }, end: Position { line: 137, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 137, column: 21, }, end: Position { line: 137, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 138, column: 7, }, end: Position { line: 138, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 138, column: 14, }, end: Position { line: 138, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 138, column: 20, }, end: Position { line: 138, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 139, column: 7, }, end: Position { line: 139, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 139, column: 17, }, end: Position { line: 139, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 140, column: 7, }, end: Position { line: 140, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 140, column: 21, }, end: Position { line: 140, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 140, column: 25, }, end: Position { line: 140, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether the SD image should be compressed using\n{command}`zstd`.\n", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 143, column: 7, }, }, }, ), ], span: Span { start: Position { line: 140, column: 31, }, end: Position { line: 143, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 137, column: 30, }, end: Position { line: 144, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "expandOnBoot", span: Span { start: Position { line: 146, column: 5, }, end: Position { line: 146, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 146, column: 20, }, end: Position { line: 146, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 147, column: 7, }, end: Position { line: 147, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 147, column: 14, }, end: Position { line: 147, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 147, column: 20, }, end: Position { line: 147, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 148, column: 7, }, end: Position { line: 148, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 148, column: 17, }, end: Position { line: 148, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 149, column: 7, }, end: Position { line: 149, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 149, column: 21, }, end: Position { line: 149, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 149, column: 25, }, end: Position { line: 149, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to configure the sd image to expand it's partition on boot.\n", span: Span { start: Position { line: 150, column: 1, }, end: Position { line: 151, column: 7, }, }, }, ), ], span: Span { start: Position { line: 149, column: 31, }, end: Position { line: 151, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 146, column: 29, }, end: Position { line: 152, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 35, column: 21, }, end: Position { line: 153, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 155, column: 3, }, end: Position { line: 155, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fileSystems", span: Span { start: Position { line: 156, column: 5, }, end: Position { line: 156, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "/boot/firmware", span: Span { start: Position { line: 157, column: 8, }, end: Position { line: 157, column: 22, }, }, }, ), ], span: Span { start: Position { line: 157, column: 7, }, end: Position { line: 157, column: 23, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "device", span: Span { start: Position { line: 158, column: 9, }, end: Position { line: 158, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/dev/disk/by-label/", span: Span { start: Position { line: 158, column: 19, }, end: Position { line: 158, column: 77, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 158, column: 40, }, end: Position { line: 158, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 158, column: 47, }, end: Position { line: 158, column: 54, }, }, }, ), Raw( PartRaw { content: "firmwarePartitionName", span: Span { start: Position { line: 158, column: 55, }, end: Position { line: 158, column: 76, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 158, column: 18, }, end: Position { line: 158, column: 78, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fsType", span: Span { start: Position { line: 159, column: 9, }, end: Position { line: 159, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "vfat", span: Span { start: Position { line: 159, column: 19, }, end: Position { line: 159, column: 23, }, }, }, ), ], span: Span { start: Position { line: 159, column: 18, }, end: Position { line: 159, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 163, column: 9, }, end: Position { line: 163, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "nofail", span: Span { start: Position { line: 163, column: 22, }, end: Position { line: 163, column: 28, }, }, }, ), ], span: Span { start: Position { line: 163, column: 21, }, end: Position { line: 163, column: 29, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "noauto", span: Span { start: Position { line: 163, column: 31, }, end: Position { line: 163, column: 37, }, }, }, ), ], span: Span { start: Position { line: 163, column: 30, }, end: Position { line: 163, column: 38, }, }, }, ), ], span: Span { start: Position { line: 163, column: 19, }, end: Position { line: 163, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 157, column: 26, }, end: Position { line: 164, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 165, column: 8, }, end: Position { line: 165, column: 9, }, }, }, ), ], span: Span { start: Position { line: 165, column: 7, }, end: Position { line: 165, column: 10, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "device", span: Span { start: Position { line: 166, column: 9, }, end: Position { line: 166, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/dev/disk/by-label/NIXOS_SD", span: Span { start: Position { line: 166, column: 19, }, end: Position { line: 166, column: 46, }, }, }, ), ], span: Span { start: Position { line: 166, column: 18, }, end: Position { line: 166, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fsType", span: Span { start: Position { line: 167, column: 9, }, end: Position { line: 167, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "ext4", span: Span { start: Position { line: 167, column: 19, }, end: Position { line: 167, column: 23, }, }, }, ), ], span: Span { start: Position { line: 167, column: 18, }, end: Position { line: 167, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 165, column: 13, }, end: Position { line: 168, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 156, column: 19, }, end: Position { line: 169, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 171, column: 5, }, end: Position { line: 171, column: 12, }, }, }, ), Raw( PartRaw { content: "storePaths", span: Span { start: Position { line: 171, column: 13, }, end: Position { line: 171, column: 23, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 171, column: 28, }, end: Position { line: 171, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 171, column: 35, }, end: Position { line: 171, column: 41, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 171, column: 42, }, end: Position { line: 171, column: 47, }, }, }, ), Raw( PartRaw { content: "toplevel", span: Span { start: Position { line: 171, column: 48, }, end: Position { line: 171, column: 56, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 171, column: 26, }, end: Position { line: 171, column: 58, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 173, column: 5, }, end: Position { line: 173, column: 11, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 173, column: 12, }, end: Position { line: 173, column: 17, }, }, }, ), Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 173, column: 18, }, end: Position { line: 173, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 173, column: 28, }, end: Position { line: 173, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "callPackage", span: Span { start: Position { line: 173, column: 33, }, end: Position { line: 173, column: 44, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "stdenv", default: None, }, FunctionHeadDestructuredArgument { identifier: "dosfstools", default: None, }, FunctionHeadDestructuredArgument { identifier: "e2fsprogs", default: None, }, FunctionHeadDestructuredArgument { identifier: "mtools", default: None, }, FunctionHeadDestructuredArgument { identifier: "libfaketime", default: None, }, FunctionHeadDestructuredArgument { identifier: "util-linux", default: None, }, FunctionHeadDestructuredArgument { identifier: "zstd", default: None, }, ], }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "stdenv", span: Span { start: Position { line: 174, column: 46, }, end: Position { line: 174, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkDerivation", span: Span { start: Position { line: 174, column: 53, }, end: Position { line: 174, column: 65, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 175, column: 7, }, end: Position { line: 175, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 175, column: 14, }, end: Position { line: 175, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 175, column: 21, }, end: Position { line: 175, column: 28, }, }, }, ), Raw( PartRaw { content: "imageName", span: Span { start: Position { line: 175, column: 29, }, end: Position { line: 175, column: 38, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nativeBuildInputs", span: Span { start: Position { line: 177, column: 7, }, end: Position { line: 177, column: 24, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: List( List { elements: [ Identifier( Identifier { id: "dosfstools", span: Span { start: Position { line: 177, column: 29, }, end: Position { line: 177, column: 39, }, }, }, ), Identifier( Identifier { id: "e2fsprogs", span: Span { start: Position { line: 177, column: 40, }, end: Position { line: 177, column: 49, }, }, }, ), Identifier( Identifier { id: "libfaketime", span: Span { start: Position { line: 177, column: 50, }, end: Position { line: 177, column: 61, }, }, }, ), Identifier( Identifier { id: "mtools", span: Span { start: Position { line: 177, column: 62, }, end: Position { line: 177, column: 68, }, }, }, ), Identifier( Identifier { id: "util-linux", span: Span { start: Position { line: 177, column: 69, }, end: Position { line: 177, column: 79, }, }, }, ), ], span: Span { start: Position { line: 177, column: 27, }, end: Position { line: 177, column: 81, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 178, column: 10, }, end: Position { line: 178, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optional", span: Span { start: Position { line: 178, column: 14, }, end: Position { line: 178, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 178, column: 23, }, end: Position { line: 178, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 178, column: 30, }, end: Position { line: 178, column: 37, }, }, }, ), Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 178, column: 38, }, end: Position { line: 178, column: 51, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "zstd", span: Span { start: Position { line: 178, column: 52, }, end: Position { line: 178, column: 56, }, }, }, ), ], }, ), }, ), }, ), Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 180, column: 16, }, end: Position { line: 180, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 180, column: 23, }, end: Position { line: 180, column: 30, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "imageName", span: Span { start: Position { line: 180, column: 32, }, end: Position { line: 180, column: 41, }, }, }, ), Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 180, column: 42, }, end: Position { line: 180, column: 55, }, }, }, ), ], span: Span { start: Position { line: 174, column: 67, }, end: Position { line: 180, column: 56, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildCommand", span: Span { start: Position { line: 182, column: 7, }, end: Position { line: 182, column: 19, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out/nix-support $out/sd-image\nexport img=$out/sd-image/", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 184, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 184, column: 36, }, end: Position { line: 184, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 184, column: 43, }, end: Position { line: 184, column: 50, }, }, }, ), Raw( PartRaw { content: "imageName", span: Span { start: Position { line: 184, column: 51, }, end: Position { line: 184, column: 60, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n\necho \"", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 186, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 186, column: 17, }, end: Position { line: 186, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 186, column: 22, }, end: Position { line: 186, column: 28, }, }, }, ), Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 186, column: 29, }, end: Position { line: 186, column: 42, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 186, column: 43, }, end: Position { line: 186, column: 49, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\" > $out/nix-support/system\nif test -n \"$compressImage\"; then\n echo \"file sd-image $img.zst\" >> $out/nix-support/hydra-build-products\nelse\n echo \"file sd-image $img\" >> $out/nix-support/hydra-build-products\nfi\n\nroot_fs=", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 193, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "rootfsImage", span: Span { start: Position { line: 193, column: 19, }, end: Position { line: 193, column: 30, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 194, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 194, column: 11, }, end: Position { line: 194, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optionalString", span: Span { start: Position { line: 194, column: 15, }, end: Position { line: 194, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 194, column: 30, }, end: Position { line: 194, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 194, column: 37, }, end: Position { line: 194, column: 44, }, }, }, ), Raw( PartRaw { content: "compressImage", span: Span { start: Position { line: 194, column: 45, }, end: Position { line: 194, column: 58, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "root_fs=./root-fs.img\necho \"Decompressing rootfs image\"\nzstd -d --no-progress \"", span: Span { start: Position { line: 195, column: 1, }, end: Position { line: 197, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "rootfsImage", span: Span { start: Position { line: 197, column: 34, }, end: Position { line: 197, column: 45, }, }, }, ), }, ), Raw( PartRaw { content: "\" -o $root_fs\n", span: Span { start: Position { line: 195, column: 1, }, end: Position { line: 198, column: 9, }, }, }, ), ], span: Span { start: Position { line: 194, column: 59, }, end: Position { line: 198, column: 11, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n\n# Gap in front of the first partition, in MiB\ngap=", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 201, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 201, column: 15, }, end: Position { line: 201, column: 23, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 201, column: 24, }, end: Position { line: 201, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 201, column: 31, }, end: Position { line: 201, column: 38, }, }, }, ), Raw( PartRaw { content: "firmwarePartitionOffset", span: Span { start: Position { line: 201, column: 39, }, end: Position { line: 201, column: 62, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n\n# Create the image file sized to fit /boot/firmware and /, plus slack for the gap.\nrootSizeBlocks=$(du -B 512 --apparent-size $root_fs | awk '{ print $1 }')\nfirmwareSizeBlocks=$((", span: Span { start: Position { line: 183, column: 1, }, end: Position { line: 205, column: 31, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 205, column: 33, }, end: Position { line: 205, column: 41, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 205, column: 42, }, end: Position { line: 205, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 205, column: 49, }, end: Position { line: 205, column: 56, }, }, }, ), Raw( PartRaw { content: "firmwareSize", span: Span { start: Position { line: 205, column: 57, }, end: Position { line: 205, column: 69, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " * 1024 * 1024 / 512))\nimageSize=$((rootSizeBlocks * 512 + firmwareSizeBlocks * 512 + gap * 1024 * 1024))\ntruncate -s $imageSize $img\n\n# type=b is 'W95 FAT32', type=83 is 'Linux'.\n# The \"bootable\" partition is where u-boot will look file for the bootloader\n# information (dtbs, extlinux.conf file).\nsfdisk $img <