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: 5, column: 5, }, end: Position { line: 5, column: 8, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 5, column: 11, }, end: Position { line: 5, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 5, column: 18, }, end: Position { line: 5, column: 26, }, }, }, ), Raw( PartRaw { content: "tp-auto-kbbl", span: Span { start: Position { line: 5, column: 27, }, end: Position { line: 5, column: 39, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 8, column: 8, }, end: Position { line: 8, column: 19, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 8, column: 27, }, end: Position { line: 8, column: 38, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "sebtm", span: Span { start: Position { line: 8, column: 42, }, end: Position { line: 8, column: 47, }, }, }, ), ], span: Span { start: Position { line: 8, column: 40, }, end: Position { line: 8, column: 49, }, }, }, ), span: Span { start: Position { line: 8, column: 22, }, end: Position { line: 8, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 13, }, }, }, ), Raw( PartRaw { content: "tp-auto-kbbl", span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 11, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 12, column: 16, }, end: Position { line: 12, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 12, column: 32, }, end: Position { line: 12, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 12, column: 36, }, end: Position { line: 12, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Auto toggle keyboard back-lighting on Thinkpads (and maybe other laptops) for Linux", span: Span { start: Position { line: 12, column: 43, }, end: Position { line: 12, column: 126, }, }, }, ), ], span: Span { start: Position { line: 12, column: 42, }, end: Position { line: 12, column: 127, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 14, column: 17, }, end: Position { line: 14, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 15, column: 22, }, end: Position { line: 15, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 16, column: 19, }, end: Position { line: 16, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "tp-auto-kbbl", span: Span { start: Position { line: 16, column: 24, }, end: Position { line: 16, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 17, column: 23, }, end: Position { line: 17, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.tp-auto-kbbl", span: Span { start: Position { line: 17, column: 42, }, end: Position { line: 17, column: 59, }, }, }, ), ], span: Span { start: Position { line: 17, column: 41, }, end: Position { line: 17, column: 60, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 18, column: 23, }, end: Position { line: 18, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 18, column: 27, }, end: Position { line: 18, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Package providing {command}`tp-auto-kbbl`.", span: Span { start: Position { line: 18, column: 34, }, end: Position { line: 18, column: 76, }, }, }, ), ], span: Span { start: Position { line: 18, column: 33, }, end: Position { line: 18, column: 77, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 14, column: 26, }, end: Position { line: 19, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "arguments", span: Span { start: Position { line: 21, column: 7, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 22, column: 16, }, end: Position { line: 22, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 22, column: 22, }, end: Position { line: 22, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 22, column: 29, }, end: Position { line: 22, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 22, column: 35, }, end: Position { line: 22, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 24, column: 23, }, end: Position { line: 24, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 24, column: 27, }, end: Position { line: 24, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "List of arguments appended to `./tp-auto-kbbl --device [device] [arguments]`\n", span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 26, column: 9, }, }, }, ), ], span: Span { start: Position { line: 24, column: 33, }, end: Position { line: 26, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 28, }, end: Position { line: 27, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "device", span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 29, column: 16, }, end: Position { line: 29, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 30, column: 16, }, end: Position { line: 30, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 30, column: 22, }, end: Position { line: 30, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/dev/input/event0", span: Span { start: Position { line: 31, column: 20, }, end: Position { line: 31, column: 37, }, }, }, ), ], span: Span { start: Position { line: 31, column: 19, }, end: Position { line: 31, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 23, }, end: Position { line: 32, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 27, }, end: Position { line: 32, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Device watched for activities.", span: Span { start: Position { line: 32, column: 34, }, end: Position { line: 32, column: 64, }, }, }, ), ], span: Span { start: Position { line: 32, column: 33, }, end: Position { line: 32, column: 65, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 29, column: 25, }, end: Position { line: 33, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 29, }, end: Position { line: 35, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 13, }, end: Position { line: 36, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 38, column: 3, }, end: Position { line: 38, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 38, column: 12, }, end: Position { line: 38, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 17, }, end: Position { line: 38, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 39, column: 5, }, end: Position { line: 39, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 39, column: 17, }, end: Position { line: 39, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 39, column: 36, }, end: Position { line: 39, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 39, column: 40, }, end: Position { line: 39, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 39, column: 34, }, end: Position { line: 39, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 41, column: 5, }, end: Position { line: 41, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 41, column: 13, }, end: Position { line: 41, column: 21, }, }, }, ), Raw( PartRaw { content: "tp-auto-kbbl", span: Span { start: Position { line: 41, column: 22, }, end: Position { line: 41, column: 34, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 37, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 43, column: 39, }, end: Position { line: 43, column: 40, }, }, }, ), ], span: Span { start: Position { line: 43, column: 38, }, end: Position { line: 43, column: 41, }, }, }, ), BinaryOperation( BinaryOperation { left: List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 44, column: 17, }, end: Position { line: 44, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 44, column: 21, }, end: Position { line: 44, column: 28, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/tp-auto-kbbl", span: Span { start: Position { line: 44, column: 15, }, end: Position { line: 44, column: 46, }, }, }, ), ], span: Span { start: Position { line: 44, column: 14, }, end: Position { line: 44, column: 47, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "--device ", span: Span { start: Position { line: 44, column: 49, }, end: Position { line: 44, column: 71, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 44, column: 60, }, end: Position { line: 44, column: 63, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "device", span: Span { start: Position { line: 44, column: 64, }, end: Position { line: 44, column: 70, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 44, column: 48, }, end: Position { line: 44, column: 72, }, }, }, ), ], span: Span { start: Position { line: 44, column: 12, }, end: Position { line: 44, column: 74, }, }, }, ), operator: Concatenation, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 44, column: 78, }, end: Position { line: 44, column: 81, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "arguments", span: Span { start: Position { line: 44, column: 82, }, end: Position { line: 44, column: 91, }, }, }, ), ], default: None, }, ), }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 45, column: 20, }, end: Position { line: 45, column: 26, }, }, }, ), ], span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "simple", span: Span { start: Position { line: 46, column: 17, }, end: Position { line: 46, column: 23, }, }, }, ), ], span: Span { start: Position { line: 46, column: 16, }, end: Position { line: 46, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 47, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unitConfig", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Description", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Auto toggle keyboard backlight", span: Span { start: Position { line: 50, column: 24, }, end: Position { line: 50, column: 54, }, }, }, ), ], span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 50, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Documentation", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://github.com/saibotd/tp-auto-kbbl", span: Span { start: Position { line: 51, column: 26, }, end: Position { line: 51, column: 65, }, }, }, ), ], span: Span { start: Position { line: 51, column: 25, }, end: Position { line: 51, column: 66, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "After", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dbus.service", span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 32, }, }, }, ), ], span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 33, }, }, }, ), ], span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 35, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 20, }, end: Position { line: 53, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 55, column: 7, }, end: Position { line: 55, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 55, column: 21, }, end: Position { line: 55, column: 38, }, }, }, ), ], span: Span { start: Position { line: 55, column: 20, }, end: Position { line: 55, column: 39, }, }, }, ), ], span: Span { start: Position { line: 55, column: 18, }, end: Position { line: 55, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 41, column: 37, }, end: Position { line: 56, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 57, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 4, }, end: Position { line: 58, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 58, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 58, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 58, column: 2, }, }, }, )