Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), Raw( PartRaw { content: "corectrl", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 33, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 10, }, }, }, ), Raw( PartRaw { content: "programs", span: Span { start: Position { line: 9, column: 11, }, end: Position { line: 9, column: 19, }, }, }, ), Raw( PartRaw { content: "corectrl", span: Span { start: Position { line: 9, column: 20, }, end: Position { line: 9, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 30, }, end: Position { line: 10, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 10, column: 34, }, end: Position { line: 10, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A tool to overclock amd graphics cards and processors.\nAdd your user to the corectrl group to run corectrl without needing to enter your password\n", span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 13, column: 5, }, }, }, ), ], span: Span { start: Position { line: 10, column: 40, }, end: Position { line: 13, column: 7, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "gpuOverclock", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 16, column: 16, }, end: Position { line: 16, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 32, }, end: Position { line: 16, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 36, }, end: Position { line: 16, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "true\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 18, column: 7, }, }, }, ), ], span: Span { start: Position { line: 16, column: 42, }, end: Position { line: 18, column: 9, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ppfeaturemask", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 19, column: 23, }, end: Position { line: 19, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 20, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 20, column: 22, }, end: Position { line: 20, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0xfffd7fff", span: Span { start: Position { line: 21, column: 20, }, end: Position { line: 21, column: 30, }, }, }, ), ], span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0xffffffff", span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 30, }, }, }, ), ], span: Span { start: Position { line: 22, column: 19, }, end: Position { line: 22, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 23, column: 23, }, end: Position { line: 23, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 23, column: 27, }, end: Position { line: 23, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Sets the `amdgpu.ppfeaturemask` kernel option.\nIn particular, it is used here to set the overdrive bit.\nDefault is `0xfffd7fff` as it is less likely to cause flicker issues.\nSetting it to `0xffffffff` enables all features.\n", span: Span { start: Position { line: 24, column: 1, }, end: Position { line: 28, column: 9, }, }, }, ), ], span: Span { start: Position { line: 23, column: 33, }, end: Position { line: 28, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 19, column: 32, }, end: Position { line: 29, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 15, column: 20, }, end: Position { line: 30, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 31, }, end: Position { line: 31, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 33, column: 3, }, end: Position { line: 33, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 33, column: 12, }, end: Position { line: 33, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 33, column: 17, }, end: Position { line: 33, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 27, }, }, }, ), ], default: None, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 33, column: 29, }, end: Position { line: 33, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkMerge", span: Span { start: Position { line: 33, column: 33, }, end: Position { line: 33, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 18, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 33, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 35, column: 38, }, end: Position { line: 35, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "corectrl", span: Span { start: Position { line: 35, column: 43, }, end: Position { line: 35, column: 51, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 35, column: 36, }, end: Position { line: 35, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 15, }, }, }, ), Raw( PartRaw { content: "dbus", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 20, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 37, column: 21, }, end: Position { line: 37, column: 29, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 37, column: 34, }, end: Position { line: 37, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "corectrl", span: Span { start: Position { line: 37, column: 39, }, end: Position { line: 37, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 37, column: 32, }, end: Position { line: 37, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 12, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 39, column: 13, }, end: Position { line: 39, column: 19, }, }, }, ), Raw( PartRaw { content: "corectrl", span: Span { start: Position { line: 39, column: 20, }, end: Position { line: 39, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 39, column: 31, }, end: Position { line: 39, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "security", span: Span { start: Position { line: 41, column: 7, }, end: Position { line: 41, column: 15, }, }, }, ), Raw( PartRaw { content: "polkit", span: Span { start: Position { line: 41, column: 16, }, end: Position { line: 41, column: 22, }, }, }, ), Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 41, column: 23, }, end: Position { line: 41, column: 34, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "polkit.addRule(function(action, subject) {\n if ((action.id == \"org.corectrl.helper.init\" ||\n action.id == \"org.corectrl.helperkiller.init\") &&\n subject.local == true &&\n subject.active == true &&\n subject.isInGroup(\"corectrl\")) {\n return polkit.Result.YES;\n }\n});\n", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 51, column: 7, }, }, }, ), ], span: Span { start: Position { line: 41, column: 37, }, end: Position { line: 51, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 52, column: 6, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 54, column: 6, }, end: Position { line: 54, column: 9, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 54, column: 10, }, end: Position { line: 54, column: 14, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 54, column: 15, }, end: Position { line: 54, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gpuOverclock", span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 31, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 54, column: 32, }, end: Position { line: 54, column: 38, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 57, column: 7, }, end: Position { line: 57, column: 11, }, }, }, ), Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 57, column: 12, }, end: Position { line: 57, column: 24, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "amdgpu.ppfeaturemask=", span: Span { start: Position { line: 57, column: 30, }, end: Position { line: 57, column: 84, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 57, column: 53, }, end: Position { line: 57, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gpuOverclock", span: Span { start: Position { line: 57, column: 57, }, end: Position { line: 57, column: 69, }, }, }, ), Raw( PartRaw { content: "ppfeaturemask", span: Span { start: Position { line: 57, column: 70, }, end: Position { line: 57, column: 83, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 57, column: 29, }, end: Position { line: 57, column: 85, }, }, }, ), ], span: Span { start: Position { line: 57, column: 27, }, end: Position { line: 57, column: 87, }, }, }, ), }, ), ], span: Span { start: Position { line: 54, column: 39, }, end: Position { line: 58, column: 6, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 33, column: 41, }, end: Position { line: 59, column: 4, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 61, column: 3, }, end: Position { line: 61, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 61, column: 8, }, end: Position { line: 61, column: 19, }, }, }, ), ], to: With( With { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 61, column: 27, }, end: Position { line: 61, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 61, column: 31, }, end: Position { line: 61, column: 42, }, }, }, ), ], default: None, }, ), target: List( List { elements: [ Identifier( Identifier { id: "artturin", span: Span { start: Position { line: 61, column: 46, }, end: Position { line: 61, column: 54, }, }, }, ), ], span: Span { start: Position { line: 61, column: 44, }, end: Position { line: 61, column: 56, }, }, }, ), span: Span { start: Position { line: 61, column: 22, }, end: Position { line: 61, column: 56, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 62, column: 2, }, }, }, )