Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 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: "hardware", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), Raw( PartRaw { content: "facetimehd", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 35, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelPackages", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 9, column: 20, }, end: Position { line: 9, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 9, column: 27, }, end: Position { line: 9, column: 31, }, }, }, ), Raw( PartRaw { content: "kernelPackages", span: Span { start: Position { line: 9, column: 32, }, end: Position { line: 9, column: 46, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 10, }, }, }, ), Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 15, column: 11, }, end: Position { line: 15, column: 19, }, }, }, ), Raw( PartRaw { content: "facetimehd", span: Span { start: Position { line: 15, column: 20, }, end: Position { line: 15, column: 30, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 15, column: 31, }, end: Position { line: 15, column: 37, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 15, column: 40, }, end: Position { line: 15, column: 54, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 15, column: 56, }, end: Position { line: 15, column: 59, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 15, column: 60, }, end: Position { line: 15, column: 65, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "facetimehd kernel module", span: Span { start: Position { line: 15, column: 67, }, end: Position { line: 15, column: 91, }, }, }, ), ], span: Span { start: Position { line: 15, column: 66, }, end: Position { line: 15, column: 92, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 10, }, }, }, ), Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 17, column: 11, }, end: Position { line: 17, column: 19, }, }, }, ), Raw( PartRaw { content: "facetimehd", span: Span { start: Position { line: 17, column: 20, }, end: Position { line: 17, column: 30, }, }, }, ), Raw( PartRaw { content: "withCalibration", span: Span { start: Position { line: 17, column: 31, }, end: Position { line: 17, column: 46, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 17, column: 49, }, end: Position { line: 17, column: 57, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 18, column: 15, }, end: Position { line: 18, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 19, column: 15, }, end: Position { line: 19, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 20, column: 12, }, end: Position { line: 20, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 22, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to include sensor calibration files for facetimehd.\nThis makes colors look much better but is experimental, see\n\nfor details.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 26, column: 5, }, }, }, ), ], span: Span { start: Position { line: 21, column: 29, }, end: Position { line: 26, column: 7, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 58, }, end: Position { line: 27, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 29, column: 3, }, end: Position { line: 29, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 29, column: 12, }, end: Position { line: 29, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 29, column: 17, }, end: Position { line: 29, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 31, column: 9, }, }, }, ), Raw( PartRaw { content: "kernelModules", span: Span { start: Position { line: 31, column: 10, }, end: Position { line: 31, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "facetimehd", span: Span { start: Position { line: 31, column: 29, }, end: Position { line: 31, column: 39, }, }, }, ), ], span: Span { start: Position { line: 31, column: 28, }, end: Position { line: 31, column: 40, }, }, }, ), ], span: Span { start: Position { line: 31, column: 26, }, end: Position { line: 31, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 33, column: 5, }, end: Position { line: 33, column: 9, }, }, }, ), Raw( PartRaw { content: "blacklistedKernelModules", span: Span { start: Position { line: 33, column: 10, }, end: Position { line: 33, column: 34, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "bdc_pci", span: Span { start: Position { line: 33, column: 40, }, end: Position { line: 33, column: 47, }, }, }, ), ], span: Span { start: Position { line: 33, column: 39, }, end: Position { line: 33, column: 48, }, }, }, ), ], span: Span { start: Position { line: 33, column: 37, }, end: Position { line: 33, column: 50, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 35, column: 5, }, end: Position { line: 35, column: 9, }, }, }, ), Raw( PartRaw { content: "extraModulePackages", span: Span { start: Position { line: 35, column: 10, }, end: Position { line: 35, column: 29, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "kernelPackages", span: Span { start: Position { line: 35, column: 34, }, end: Position { line: 35, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "facetimehd", span: Span { start: Position { line: 35, column: 49, }, end: Position { line: 35, column: 59, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 35, column: 32, }, end: Position { line: 35, column: 61, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 13, }, }, }, ), Raw( PartRaw { content: "firmware", span: Span { start: Position { line: 37, column: 14, }, end: Position { line: 37, column: 22, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 37, column: 27, }, end: Position { line: 37, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "facetimehd-firmware", span: Span { start: Position { line: 37, column: 32, }, end: Position { line: 37, column: 51, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 37, column: 25, }, end: Position { line: 37, column: 53, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 38, column: 10, }, end: Position { line: 38, column: 18, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "withCalibration", span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 38, column: 38, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 38, column: 39, }, end: Position { line: 38, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "facetimehd-calibration", span: Span { start: Position { line: 38, column: 44, }, end: Position { line: 38, column: 66, }, }, }, ), ], default: None, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "powerManagement", span: Span { start: Position { line: 41, column: 5, }, end: Position { line: 41, column: 20, }, }, }, ), Raw( PartRaw { content: "powerDownCommands", span: Span { start: Position { line: 41, column: 21, }, end: Position { line: 41, column: 38, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 42, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kmod", span: Span { start: Position { line: 42, column: 14, }, end: Position { line: 42, column: 18, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/lsmod | ", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 42, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 42, column: 34, }, end: Position { line: 42, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gnugrep", span: Span { start: Position { line: 42, column: 39, }, end: Position { line: 42, column: 46, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/grep -q \"^facetimehd\" && ", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 42, column: 77, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 42, column: 79, }, end: Position { line: 42, column: 83, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kmod", span: Span { start: Position { line: 42, column: 84, }, end: Position { line: 42, column: 88, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/rmmod -f -v facetimehd\n", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 43, column: 5, }, }, }, ), ], span: Span { start: Position { line: 41, column: 41, }, end: Position { line: 43, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "powerManagement", span: Span { start: Position { line: 46, column: 5, }, end: Position { line: 46, column: 20, }, }, }, ), Raw( PartRaw { content: "resumeCommands", span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 46, column: 35, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 47, column: 1, }, end: Position { line: 47, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kmod", span: Span { start: Position { line: 47, column: 14, }, end: Position { line: 47, column: 18, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/modprobe -v facetimehd\n", span: Span { start: Position { line: 47, column: 1, }, end: Position { line: 48, column: 5, }, }, }, ), ], span: Span { start: Position { line: 46, column: 38, }, end: Position { line: 48, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 29, column: 28, }, end: Position { line: 50, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 52, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 52, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 52, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 52, column: 2, }, }, }, )