Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 4, column: 3, }, end: Position { line: 4, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 4, column: 9, }, end: Position { line: 4, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 41, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settingsFormat", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 5, column: 20, }, end: Position { line: 5, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 32, }, }, }, ), Raw( PartRaw { content: "json", span: Span { start: Position { line: 5, column: 33, }, end: Position { line: 5, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 5, column: 38, }, end: Position { line: 5, column: 40, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settingsFormat", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 7, column: 31, }, end: Position { line: 7, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "persistent-evdev-config", span: Span { start: Position { line: 7, column: 41, }, end: Position { line: 7, column: 64, }, }, }, ), ], span: Span { start: Position { line: 7, column: 40, }, end: Position { line: 7, column: 65, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cache", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 10, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/cache/persistent-evdev", span: Span { start: Position { line: 8, column: 14, }, end: Position { line: 8, column: 41, }, }, }, ), ], span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 8, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 15, }, end: Position { line: 9, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 9, column: 19, }, end: Position { line: 9, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "virt", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "phys", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "/dev/input/by-id/", span: Span { start: Position { line: 9, column: 42, }, end: Position { line: 9, column: 66, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "phys", span: Span { start: Position { line: 9, column: 61, }, end: Position { line: 9, column: 65, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 41, }, end: Position { line: 9, column: 67, }, }, }, ), span: Span { start: Position { line: 9, column: 35, }, end: Position { line: 9, column: 67, }, }, }, ), span: Span { start: Position { line: 9, column: 29, }, end: Position { line: 9, column: 67, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 9, column: 69, }, end: Position { line: 9, column: 72, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 9, column: 73, }, end: Position { line: 9, column: 80, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 66, }, end: Position { line: 10, column: 4, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 13, column: 3, }, end: Position { line: 13, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 13, column: 11, }, end: Position { line: 13, column: 19, }, }, }, ), Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 13, column: 20, }, end: Position { line: 13, column: 36, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkEnableOption", span: Span { start: Position { line: 14, column: 18, }, end: Position { line: 14, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 34, }, end: Position { line: 14, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 38, }, end: Position { line: 14, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "virtual input devices that persist even if the backing device is hotplugged", span: Span { start: Position { line: 14, column: 45, }, end: Position { line: 14, column: 120, }, }, }, ), ], span: Span { start: Position { line: 14, column: 44, }, end: Position { line: 14, column: 121, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 16, column: 19, }, end: Position { line: 16, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 17, column: 17, }, end: Position { line: 17, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), ], to: With( With { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 18, column: 19, }, end: Position { line: 18, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "types", span: Span { start: Position { line: 18, column: 23, }, end: Position { line: 18, column: 28, }, }, }, ), ], default: None, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 18, column: 30, }, end: Position { line: 18, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 18, column: 38, }, end: Position { line: 18, column: 41, }, }, }, ), ], }, ), span: Span { start: Position { line: 18, column: 14, }, end: Position { line: 18, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 19, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 25, }, end: Position { line: 19, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A set of virtual proxy device labels with backing physical device ids.\n\nPhysical devices should already exist in {file}`/dev/input/by-id/`.\nProxy devices will be automatically given a `uinput-` prefix.\n\nSee the [project page](https://github.com/aiberia/persistent-evdev#example-usage-with-libvirt)\nfor example configuration of virtual devices with libvirt\nand remember to add `uinput-*` devices to the qemu\n`cgroup_device_acl` list (see [](#opt-virtualisation.libvirtd.qemu.verbatimConfig)).\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 29, column: 7, }, }, }, ), ], span: Span { start: Position { line: 19, column: 31, }, end: Position { line: 29, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 30, column: 17, }, end: Position { line: 30, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "literalExpression", span: Span { start: Position { line: 30, column: 21, }, end: Position { line: 30, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n persist-mouse0 = \"usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-event-if01\";\n persist-mouse1 = \"usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-event-mouse\";\n persist-mouse2 = \"usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-if01-event-kbd\";\n persist-keyboard0 = \"usb-Microsoft_NaturalĀ®_Ergonomic_Keyboard_4000-event-kbd\";\n persist-keyboard1 = \"usb-Microsoft_NaturalĀ®_Ergonomic_Keyboard_4000-if01-event-kbd\";\n}\n", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 38, column: 7, }, }, }, ), ], span: Span { start: Position { line: 30, column: 39, }, end: Position { line: 38, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 28, }, end: Position { line: 39, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 39, }, end: Position { line: 40, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 42, column: 12, }, end: Position { line: 42, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 42, column: 16, }, end: Position { line: 42, column: 20, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 42, column: 21, }, end: Position { line: 42, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 42, column: 25, }, end: Position { line: 42, column: 31, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 44, column: 5, }, end: Position { line: 44, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 44, column: 13, }, end: Position { line: 44, column: 21, }, }, }, ), Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 44, column: 22, }, end: Position { line: 44, column: 38, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "documentation", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 20, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "https://github.com/aiberia/persistent-evdev/blob/master/README.md", span: Span { start: Position { line: 45, column: 26, }, end: Position { line: 45, column: 91, }, }, }, ), ], span: Span { start: Position { line: 45, column: 25, }, end: Position { line: 45, column: 92, }, }, }, ), ], span: Span { start: Position { line: 45, column: 23, }, end: Position { line: 45, column: 94, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 46, column: 7, }, end: Position { line: 46, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Persistent evdev proxy", span: Span { start: Position { line: 46, column: 22, }, end: Position { line: 46, column: 44, }, }, }, ), ], span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 46, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 47, column: 7, }, end: Position { line: 47, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 38, }, }, }, ), ], span: Span { start: Position { line: 47, column: 20, }, end: Position { line: 47, column: 39, }, }, }, ), ], span: Span { start: Position { line: 47, column: 18, }, end: Position { line: 47, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 30, }, }, }, ), ], span: Span { start: Position { line: 50, column: 19, }, end: Position { line: 50, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 51, column: 24, }, end: Position { line: 51, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 51, column: 29, }, end: Position { line: 51, column: 45, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/persistent-evdev.py ", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 71, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 51, column: 73, }, end: Position { line: 51, column: 83, }, }, }, ), }, ), ], span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 85, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CacheDirectory", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 52, column: 27, }, end: Position { line: 52, column: 43, }, }, }, ), ], span: Span { start: Position { line: 52, column: 26, }, end: Position { line: 52, column: 44, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 23, }, end: Position { line: 53, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 44, column: 41, }, end: Position { line: 54, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 56, column: 5, }, end: Position { line: 56, column: 13, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 56, column: 14, }, end: Position { line: 56, column: 18, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 56, column: 19, }, end: Position { line: 56, column: 27, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 56, column: 32, }, end: Position { line: 56, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "persistent-evdev", span: Span { start: Position { line: 56, column: 37, }, end: Position { line: 56, column: 53, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 56, column: 30, }, end: Position { line: 56, column: 55, }, }, }, ), }, ), ], span: Span { start: Position { line: 42, column: 32, }, end: Position { line: 57, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 59, column: 3, }, end: Position { line: 59, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 59, column: 8, }, end: Position { line: 59, column: 19, }, }, }, ), ], to: With( With { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 59, column: 27, }, end: Position { line: 59, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 59, column: 31, }, end: Position { line: 59, column: 42, }, }, }, ), ], default: None, }, ), target: List( List { elements: [ Identifier( Identifier { id: "lodi", span: Span { start: Position { line: 59, column: 46, }, end: Position { line: 59, column: 50, }, }, }, ), ], span: Span { start: Position { line: 59, column: 44, }, end: Position { line: 59, column: 52, }, }, }, ), span: Span { start: Position { line: 59, column: 22, }, end: Position { line: 59, column: 52, }, }, }, ), }, ), ], span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 60, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 60, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 60, column: 2, }, }, }, )