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: 2, column: 6, }, end: Position { line: 2, column: 9, }, }, }, ), target: 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: "klipper", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "format", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 5, column: 12, }, end: Position { line: 5, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 5, column: 17, }, end: Position { line: 5, column: 24, }, }, }, ), Raw( PartRaw { content: "ini", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "listToValue", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "l", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 8, column: 10, }, end: Position { line: 8, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "length", span: Span { start: Position { line: 8, column: 19, }, end: Position { line: 8, column: 25, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "l", span: Span { start: Position { line: 8, column: 26, }, end: Position { line: 8, column: 27, }, }, }, ), ], }, ), operator: EqualTo, right: Integer( Integer { value: "1", span: Span { start: Position { line: 8, column: 31, }, end: Position { line: 8, column: 32, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "generators", span: Span { start: Position { line: 8, column: 38, }, end: Position { line: 8, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkValueStringDefault", span: Span { start: Position { line: 8, column: 49, }, end: Position { line: 8, column: 69, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 8, column: 70, }, end: Position { line: 8, column: 73, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 8, column: 75, }, end: Position { line: 8, column: 79, }, }, }, ), arguments: [ Identifier( Identifier { id: "l", span: Span { start: Position { line: 8, column: 80, }, end: Position { line: 8, column: 81, }, }, }, ), ], }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 12, }, end: Position { line: 9, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMapStrings", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "s", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "\n ", span: Span { start: Position { line: 9, column: 38, }, end: Position { line: 9, column: 81, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "generators", span: Span { start: Position { line: 9, column: 44, }, end: Position { line: 9, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkValueStringDefault", span: Span { start: Position { line: 9, column: 55, }, end: Position { line: 9, column: 75, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 9, column: 76, }, end: Position { line: 9, column: 78, }, }, }, ), Identifier( Identifier { id: "s", span: Span { start: Position { line: 9, column: 79, }, end: Position { line: 9, column: 80, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 37, }, end: Position { line: 9, column: 82, }, }, }, ), span: Span { start: Position { line: 9, column: 34, }, end: Position { line: 9, column: 82, }, }, }, ), Identifier( Identifier { id: "l", span: Span { start: Position { line: 9, column: 84, }, end: Position { line: 9, column: 85, }, }, }, ), ], }, ), span: Span { start: Position { line: 8, column: 7, }, end: Position { line: 9, column: 85, }, }, }, ), span: Span { start: Position { line: 7, column: 19, }, end: Position { line: 9, column: 85, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkKeyValue", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "generators", span: Span { start: Position { line: 10, column: 18, }, end: Position { line: 10, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkKeyValueDefault", span: Span { start: Position { line: 10, column: 29, }, end: Position { line: 10, column: 46, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 10, column: 47, }, end: Position { line: 10, column: 50, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: ":", span: Span { start: Position { line: 10, column: 52, }, end: Position { line: 10, column: 53, }, }, }, ), ], span: Span { start: Position { line: 10, column: 51, }, end: Position { line: 10, column: 54, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 5, column: 29, }, end: Position { line: 11, column: 4, }, }, }, ), ], }, ), }, ), ], 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, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 13, }, }, }, ), Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 17, column: 32, }, end: Position { line: 17, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 17, column: 36, }, end: Position { line: 17, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Klipper, the 3D printer firmware", span: Span { start: Position { line: 17, column: 43, }, end: Position { line: 17, column: 75, }, }, }, ), ], span: Span { start: Position { line: 17, column: 42, }, end: Position { line: 17, column: 76, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 25, }, }, }, ), 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: "package", span: Span { start: Position { line: 20, column: 22, }, end: Position { line: 20, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 21, column: 24, }, end: Position { line: 21, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 22, column: 23, }, end: Position { line: 22, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.klipper", span: Span { start: Position { line: 22, column: 42, }, end: Position { line: 22, column: 54, }, }, }, ), ], span: Span { start: Position { line: 22, column: 41, }, end: Position { line: 22, column: 55, }, }, }, ), ], }, ), }, ), 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: [ String( String_ { parts: [ Raw( PartRaw { content: "The Klipper package.", span: Span { start: Position { line: 23, column: 34, }, end: Position { line: 23, column: 54, }, }, }, ), ], span: Span { start: Position { line: 23, column: 33, }, end: Position { line: 23, column: 55, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 19, column: 26, }, end: Position { line: 24, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "inputTTY", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 26, column: 18, }, end: Position { line: 26, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 27, column: 16, }, end: Position { line: 27, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 27, column: 22, }, end: Position { line: 27, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/klipper/tty", span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 28, column: 36, }, }, }, ), ], span: Span { start: Position { line: 28, column: 19, }, end: Position { line: 28, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 29, column: 23, }, end: Position { line: 29, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 29, column: 27, }, end: Position { line: 29, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Path of the virtual printer symlink to create.", span: Span { start: Position { line: 29, column: 34, }, end: Position { line: 29, column: 80, }, }, }, ), ], span: Span { start: Position { line: 29, column: 33, }, end: Position { line: 29, column: 81, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 26, column: 27, }, end: Position { line: 30, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apiSocket", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 33, column: 16, }, end: Position { line: 33, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 33, column: 22, }, end: Position { line: 33, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 33, column: 29, }, end: Position { line: 33, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 33, column: 35, }, end: Position { line: 33, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 34, column: 9, }, end: Position { line: 34, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/klipper/api", span: Span { start: Position { line: 34, column: 20, }, end: Position { line: 34, column: 36, }, }, }, ), ], span: Span { start: Position { line: 34, column: 19, }, end: Position { line: 34, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 35, column: 23, }, end: Position { line: 35, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 35, column: 27, }, end: Position { line: 35, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Path of the API socket to create.", span: Span { start: Position { line: 35, column: 34, }, end: Position { line: 35, column: 67, }, }, }, ), ], span: Span { start: Position { line: 35, column: 33, }, end: Position { line: 35, column: 68, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 32, column: 28, }, end: Position { line: 36, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mutableConfig", span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 38, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 38, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 39, column: 16, }, end: Position { line: 39, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 39, column: 22, }, end: Position { line: 39, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 40, column: 19, }, end: Position { line: 40, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 42, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 42, column: 27, }, end: Position { line: 42, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to copy the config to a mutable directory instead of using the one directly from the nix store.\nThis will only copy the config if the file at `services.klipper.mutableConfigPath` doesn't exist.\n", span: Span { start: Position { line: 43, column: 1, }, end: Position { line: 45, column: 9, }, }, }, ), ], span: Span { start: Position { line: 42, column: 33, }, end: Position { line: 45, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 38, column: 32, }, end: Position { line: 46, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mutableConfigFolder", span: Span { start: Position { line: 48, column: 7, }, end: Position { line: 48, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 48, column: 29, }, end: Position { line: 48, column: 37, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 49, column: 9, }, end: Position { line: 49, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 49, column: 16, }, end: Position { line: 49, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/klipper", span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 36, }, }, }, ), ], span: Span { start: Position { line: 50, column: 19, }, end: Position { line: 50, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 51, column: 23, }, end: Position { line: 51, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 51, column: 27, }, end: Position { line: 51, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Path to mutable Klipper config file.", span: Span { start: Position { line: 51, column: 34, }, end: Position { line: 51, column: 70, }, }, }, ), ], span: Span { start: Position { line: 51, column: 33, }, end: Position { line: 51, column: 71, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 48, column: 38, }, end: Position { line: 52, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 54, column: 7, }, end: Position { line: 54, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 54, column: 20, }, end: Position { line: 54, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 55, column: 16, }, end: Position { line: 55, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 55, column: 29, }, end: Position { line: 55, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 55, column: 35, }, end: Position { line: 55, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 56, column: 19, }, end: Position { line: 56, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 57, column: 23, }, end: Position { line: 57, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 57, column: 27, }, end: Position { line: 57, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Path to default Klipper config.\n", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 9, }, }, }, ), ], span: Span { start: Position { line: 57, column: 33, }, end: Position { line: 59, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 54, column: 29, }, end: Position { line: 60, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "octoprintIntegration", span: Span { start: Position { line: 62, column: 7, }, end: Position { line: 62, column: 27, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 62, column: 30, }, end: Position { line: 62, column: 38, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 63, column: 16, }, end: Position { line: 63, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 63, column: 22, }, end: Position { line: 63, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 64, column: 19, }, end: Position { line: 64, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 65, column: 23, }, end: Position { line: 65, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Allows Octoprint to control Klipper.", span: Span { start: Position { line: 65, column: 34, }, end: Position { line: 65, column: 70, }, }, }, ), ], span: Span { start: Position { line: 65, column: 33, }, end: Position { line: 65, column: 71, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 62, column: 39, }, end: Position { line: 66, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 68, column: 7, }, end: Position { line: 68, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 68, column: 14, }, end: Position { line: 68, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 69, column: 9, }, end: Position { line: 69, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 69, column: 16, }, end: Position { line: 69, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 69, column: 22, }, end: Position { line: 69, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 69, column: 29, }, end: Position { line: 69, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 69, column: 35, }, end: Position { line: 69, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 70, column: 19, }, end: Position { line: 70, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 71, column: 9, }, end: Position { line: 71, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 71, column: 23, }, end: Position { line: 71, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 71, column: 27, }, end: Position { line: 71, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "User account under which Klipper runs.\n\nIf null is specified (default), a temporary user will be created by systemd.\n", span: Span { start: Position { line: 72, column: 1, }, end: Position { line: 75, column: 9, }, }, }, ), ], span: Span { start: Position { line: 71, column: 33, }, end: Position { line: 75, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 68, column: 23, }, end: Position { line: 76, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 78, column: 7, }, end: Position { line: 78, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 78, column: 15, }, end: Position { line: 78, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 79, column: 9, }, end: Position { line: 79, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 79, column: 16, }, end: Position { line: 79, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 79, column: 22, }, end: Position { line: 79, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 79, column: 29, }, end: Position { line: 79, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 79, column: 35, }, end: Position { line: 79, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 80, column: 19, }, end: Position { line: 80, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 81, column: 23, }, end: Position { line: 81, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 81, column: 27, }, end: Position { line: 81, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Group account under which Klipper runs.\n\nIf null is specified (default), a temporary user will be created by systemd.\n", span: Span { start: Position { line: 82, column: 1, }, end: Position { line: 85, column: 9, }, }, }, ), ], span: Span { start: Position { line: 81, column: 33, }, end: Position { line: 85, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 78, column: 24, }, end: Position { line: 86, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 88, column: 7, }, end: Position { line: 88, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 88, column: 18, }, end: Position { line: 88, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 89, column: 9, }, end: Position { line: 89, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 89, column: 16, }, end: Position { line: 89, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 89, column: 22, }, end: Position { line: 89, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "format", span: Span { start: Position { line: 89, column: 29, }, end: Position { line: 89, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 89, column: 36, }, end: Position { line: 89, column: 40, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 90, column: 9, }, end: Position { line: 90, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 90, column: 19, }, end: Position { line: 90, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 91, column: 9, }, end: Position { line: 91, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 91, column: 23, }, end: Position { line: 91, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 91, column: 27, }, end: Position { line: 91, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Configuration for Klipper. See the [documentation](https://www.klipper3d.org/Overview.html#configuration-and-tuning-guides)\nfor supported values.\n", span: Span { start: Position { line: 92, column: 1, }, end: Position { line: 94, column: 9, }, }, }, ), ], span: Span { start: Position { line: 91, column: 33, }, end: Position { line: 94, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 88, column: 27, }, end: Position { line: 95, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 97, column: 7, }, end: Position { line: 97, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 97, column: 19, }, end: Position { line: 97, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 98, column: 9, }, end: Position { line: 98, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 98, column: 23, }, end: Position { line: 98, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 98, column: 27, }, end: Position { line: 98, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Firmwares klipper should manage", span: Span { start: Position { line: 98, column: 34, }, end: Position { line: 98, column: 65, }, }, }, ), ], span: Span { start: Position { line: 98, column: 33, }, end: Position { line: 98, column: 66, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 99, column: 9, }, end: Position { line: 99, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 99, column: 19, }, end: Position { line: 99, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 100, column: 21, }, end: Position { line: 100, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 100, column: 28, }, end: Position { line: 100, column: 35, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "submodule", span: Span { start: Position { line: 101, column: 12, }, end: Position { line: 101, column: 21, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 102, column: 13, }, end: Position { line: 102, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 103, column: 15, }, end: Position { line: 103, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 103, column: 24, }, end: Position { line: 103, column: 38, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 103, column: 40, }, end: Position { line: 103, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 103, column: 44, }, end: Position { line: 103, column: 49, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "building of firmware and addition of klipper-flash tools for manual flashing.\nThis will add `klipper-flash-$mcu` scripts to your environment which can be called to flash the firmware.\n", span: Span { start: Position { line: 104, column: 1, }, end: Position { line: 106, column: 15, }, }, }, ), ], span: Span { start: Position { line: 103, column: 50, }, end: Position { line: 106, column: 17, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serial", span: Span { start: Position { line: 107, column: 15, }, end: Position { line: 107, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 107, column: 24, }, end: Position { line: 107, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 108, column: 17, }, end: Position { line: 108, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 108, column: 24, }, end: Position { line: 108, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 108, column: 30, }, end: Position { line: 108, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 108, column: 37, }, end: Position { line: 108, column: 41, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 109, column: 17, }, end: Position { line: 109, column: 28, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 109, column: 31, }, end: Position { line: 109, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 109, column: 35, }, end: Position { line: 109, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Path to serial port this printer is connected to. Leave `null` to derive it from `service.klipper.settings`.", span: Span { start: Position { line: 109, column: 42, }, end: Position { line: 109, column: 150, }, }, }, ), ], span: Span { start: Position { line: 109, column: 41, }, end: Position { line: 109, column: 151, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 107, column: 33, }, end: Position { line: 110, column: 16, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 111, column: 15, }, end: Position { line: 111, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 111, column: 28, }, end: Position { line: 111, column: 36, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 112, column: 17, }, end: Position { line: 112, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "path", span: Span { start: Position { line: 112, column: 24, }, end: Position { line: 112, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 113, column: 17, }, end: Position { line: 113, column: 28, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 113, column: 31, }, end: Position { line: 113, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 113, column: 35, }, end: Position { line: 113, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Path to firmware config which is generated using `klipper-genconf`", span: Span { start: Position { line: 113, column: 42, }, end: Position { line: 113, column: 108, }, }, }, ), ], span: Span { start: Position { line: 113, column: 41, }, end: Position { line: 113, column: 109, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 111, column: 37, }, end: Position { line: 114, column: 16, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 102, column: 23, }, end: Position { line: 115, column: 14, }, }, }, ), }, ), ], span: Span { start: Position { line: 101, column: 22, }, end: Position { line: 116, column: 12, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 100, column: 16, }, end: Position { line: 116, column: 13, }, }, }, ), }, ), ], span: Span { start: Position { line: 97, column: 28, }, end: Position { line: 117, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 24, }, end: Position { line: 118, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 119, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 122, column: 3, }, end: Position { line: 122, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 122, column: 12, }, end: Position { line: 122, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 122, column: 17, }, end: Position { line: 122, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 122, column: 21, }, end: Position { line: 122, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 123, column: 5, }, end: Position { line: 123, column: 15, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 125, column: 9, }, end: Position { line: 125, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 125, column: 21, }, end: Position { line: 125, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "octoprintIntegration", span: Span { start: Position { line: 125, column: 25, }, end: Position { line: 125, column: 45, }, }, }, ), ], default: None, }, ), operator: Implication, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 125, column: 49, }, end: Position { line: 125, column: 55, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 125, column: 56, }, end: Position { line: 125, column: 64, }, }, }, ), Raw( PartRaw { content: "octoprint", span: Span { start: Position { line: 125, column: 65, }, end: Position { line: 125, column: 74, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 125, column: 75, }, end: Position { line: 125, column: 81, }, }, }, ), ], default: None, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 126, column: 9, }, end: Position { line: 126, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Option services.klipper.octoprintIntegration requires Octoprint to be enabled on this system. Please enable services.octoprint to use it.", span: Span { start: Position { line: 126, column: 20, }, end: Position { line: 126, column: 157, }, }, }, ), ], span: Span { start: Position { line: 126, column: 19, }, end: Position { line: 126, column: 158, }, }, }, ), }, ), ], span: Span { start: Position { line: 124, column: 7, }, end: Position { line: 127, column: 8, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 129, column: 9, }, end: Position { line: 129, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 129, column: 21, }, end: Position { line: 129, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 129, column: 25, }, end: Position { line: 129, column: 29, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 129, column: 33, }, end: Position { line: 129, column: 37, }, }, }, ), }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 129, column: 41, }, end: Position { line: 129, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 129, column: 45, }, end: Position { line: 129, column: 50, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 129, column: 54, }, end: Position { line: 129, column: 58, }, }, }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 130, column: 9, }, end: Position { line: 130, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Option services.klipper.group is not set when services.klipper.user is specified.", span: Span { start: Position { line: 130, column: 20, }, end: Position { line: 130, column: 101, }, }, }, ), ], span: Span { start: Position { line: 130, column: 19, }, end: Position { line: 130, column: 102, }, }, }, ), }, ), ], span: Span { start: Position { line: 128, column: 7, }, end: Position { line: 131, column: 8, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 133, column: 9, }, end: Position { line: 133, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 133, column: 21, }, end: Position { line: 133, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 133, column: 25, }, end: Position { line: 133, column: 33, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 133, column: 37, }, end: Position { line: 133, column: 41, }, }, }, ), }, ), operator: Implication, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldl", span: Span { start: Position { line: 133, column: 45, }, end: Position { line: 133, column: 50, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "a", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "b", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "a", span: Span { start: Position { line: 133, column: 58, }, end: Position { line: 133, column: 59, }, }, }, ), operator: LogicalAnd, right: Identifier( Identifier { id: "b", span: Span { start: Position { line: 133, column: 63, }, end: Position { line: 133, column: 64, }, }, }, ), }, ), span: Span { start: Position { line: 133, column: 55, }, end: Position { line: 133, column: 64, }, }, }, ), span: Span { start: Position { line: 133, column: 52, }, end: Position { line: 133, column: 64, }, }, }, ), Identifier( Identifier { id: "true", span: Span { start: Position { line: 133, column: 66, }, end: Position { line: 133, column: 70, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 133, column: 72, }, end: Position { line: 133, column: 86, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "mcu", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 133, column: 96, }, end: Position { line: 133, column: 99, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 133, column: 103, }, end: Position { line: 133, column: 107, }, }, }, ), }, ), operator: Implication, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hasAttrByPath", span: Span { start: Position { line: 133, column: 112, }, end: Position { line: 133, column: 125, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 133, column: 131, }, end: Position { line: 133, column: 134, }, }, }, ), }, ), ], span: Span { start: Position { line: 133, column: 128, }, end: Position { line: 133, column: 136, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "serial", span: Span { start: Position { line: 133, column: 138, }, end: Position { line: 133, column: 144, }, }, }, ), ], span: Span { start: Position { line: 133, column: 137, }, end: Position { line: 133, column: 145, }, }, }, ), ], span: Span { start: Position { line: 133, column: 126, }, end: Position { line: 133, column: 147, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 133, column: 148, }, end: Position { line: 133, column: 151, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 133, column: 152, }, end: Position { line: 133, column: 160, }, }, }, ), ], default: None, }, ), ], }, ), }, ), span: Span { start: Position { line: 133, column: 93, }, end: Position { line: 133, column: 161, }, }, }, ), span: Span { start: Position { line: 133, column: 88, }, end: Position { line: 133, column: 161, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 133, column: 163, }, end: Position { line: 133, column: 166, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 133, column: 167, }, end: Position { line: 133, column: 176, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 134, column: 9, }, end: Position { line: 134, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Option services.klipper.settings.$mcu.serial must be set when settings.klipper.firmware.$mcu is specified", span: Span { start: Position { line: 134, column: 20, }, end: Position { line: 134, column: 125, }, }, }, ), ], span: Span { start: Position { line: 134, column: 19, }, end: Position { line: 134, column: 126, }, }, }, ), }, ), ], span: Span { start: Position { line: 132, column: 7, }, end: Position { line: 135, column: 8, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 137, column: 9, }, end: Position { line: 137, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 137, column: 22, }, end: Position { line: 137, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 137, column: 26, }, end: Position { line: 137, column: 36, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 137, column: 40, }, end: Position { line: 137, column: 44, }, }, }, ), }, ), operator: NotEqualTo, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 137, column: 50, }, end: Position { line: 137, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 137, column: 54, }, end: Position { line: 137, column: 62, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 137, column: 66, }, end: Position { line: 137, column: 70, }, }, }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 138, column: 9, }, end: Position { line: 138, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "You need to either specify services.klipper.settings or services.klipper.defaultConfig.", span: Span { start: Position { line: 138, column: 20, }, end: Position { line: 138, column: 107, }, }, }, ), ], span: Span { start: Position { line: 138, column: 19, }, end: Position { line: 138, column: 108, }, }, }, ), }, ), ], span: Span { start: Position { line: 136, column: 7, }, end: Position { line: 139, column: 8, }, }, }, ), ], span: Span { start: Position { line: 123, column: 18, }, end: Position { line: 140, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 142, column: 5, }, end: Position { line: 142, column: 16, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 142, column: 17, }, end: Position { line: 142, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 142, column: 23, }, end: Position { line: 142, column: 27, }, }, }, ), arguments: [ UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 142, column: 30, }, end: Position { line: 142, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfig", span: Span { start: Position { line: 142, column: 34, }, end: Position { line: 142, column: 47, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 142, column: 29, }, end: Position { line: 142, column: 47, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "klipper.cfg", span: Span { start: Position { line: 143, column: 8, }, end: Position { line: 143, column: 19, }, }, }, ), ], span: Span { start: Position { line: 143, column: 7, }, end: Position { line: 143, column: 20, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 143, column: 21, }, end: Position { line: 143, column: 27, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 143, column: 33, }, end: Position { line: 143, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 143, column: 37, }, end: Position { line: 143, column: 45, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 143, column: 49, }, end: Position { line: 143, column: 53, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "format", span: Span { start: Position { line: 143, column: 59, }, end: Position { line: 143, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 143, column: 66, }, end: Position { line: 143, column: 74, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "klipper.cfg", span: Span { start: Position { line: 143, column: 76, }, end: Position { line: 143, column: 87, }, }, }, ), ], span: Span { start: Position { line: 143, column: 75, }, end: Position { line: 143, column: 88, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 143, column: 89, }, end: Position { line: 143, column: 92, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 143, column: 93, }, end: Position { line: 143, column: 101, }, }, }, ), ], default: None, }, ), ], }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 143, column: 107, }, end: Position { line: 143, column: 110, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 143, column: 111, }, end: Position { line: 143, column: 121, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 143, column: 30, }, end: Position { line: 143, column: 121, }, }, }, ), }, ), ], span: Span { start: Position { line: 142, column: 49, }, end: Position { line: 144, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 146, column: 5, }, end: Position { line: 146, column: 13, }, }, }, ), Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 146, column: 14, }, end: Position { line: 146, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 146, column: 24, }, end: Position { line: 146, column: 28, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 146, column: 29, }, end: Position { line: 146, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "octoprintIntegration", span: Span { start: Position { line: 146, column: 33, }, end: Position { line: 146, column: 53, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 147, column: 7, }, end: Position { line: 147, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 147, column: 14, }, end: Position { line: 147, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 147, column: 21, }, end: Position { line: 147, column: 29, }, }, }, ), Raw( PartRaw { content: "octoprint", span: Span { start: Position { line: 147, column: 30, }, end: Position { line: 147, column: 39, }, }, }, ), Raw( PartRaw { content: "user", span: Span { start: Position { line: 147, column: 40, }, end: Position { line: 147, column: 44, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 148, column: 7, }, end: Position { line: 148, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 148, column: 15, }, end: Position { line: 148, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 148, column: 22, }, end: Position { line: 148, column: 30, }, }, }, ), Raw( PartRaw { content: "octoprint", span: Span { start: Position { line: 148, column: 31, }, end: Position { line: 148, column: 40, }, }, }, ), Raw( PartRaw { content: "group", span: Span { start: Position { line: 148, column: 41, }, end: Position { line: 148, column: 46, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 146, column: 54, }, end: Position { line: 149, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 151, column: 5, }, end: Position { line: 151, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 151, column: 13, }, end: Position { line: 151, column: 21, }, }, }, ), Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 151, column: 22, }, end: Position { line: 151, column: 29, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "klippyArgs", span: Span { start: Position { line: 153, column: 9, }, end: Position { line: 153, column: 19, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "--input-tty=", span: Span { start: Position { line: 153, column: 23, }, end: Position { line: 153, column: 50, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 153, column: 37, }, end: Position { line: 153, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "inputTTY", span: Span { start: Position { line: 153, column: 41, }, end: Position { line: 153, column: 49, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 153, column: 22, }, end: Position { line: 153, column: 51, }, }, }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 154, column: 13, }, end: Position { line: 154, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 154, column: 29, }, end: Position { line: 154, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "apiSocket", span: Span { start: Position { line: 154, column: 33, }, end: Position { line: 154, column: 42, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 154, column: 46, }, end: Position { line: 154, column: 50, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: " --api-server=", span: Span { start: Position { line: 154, column: 53, }, end: Position { line: 154, column: 83, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 154, column: 69, }, end: Position { line: 154, column: 72, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "apiSocket", span: Span { start: Position { line: 154, column: 73, }, end: Position { line: 154, column: 82, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 154, column: 52, }, end: Position { line: 154, column: 84, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "printerConfigPath", span: Span { start: Position { line: 155, column: 9, }, end: Position { line: 155, column: 26, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 156, column: 14, }, end: Position { line: 156, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfig", span: Span { start: Position { line: 156, column: 18, }, end: Position { line: 156, column: 31, }, }, }, ), ], default: None, }, ), then: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 157, column: 16, }, end: Position { line: 157, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfigFolder", span: Span { start: Position { line: 157, column: 20, }, end: Position { line: 157, column: 39, }, }, }, ), ], default: None, }, ), operator: Addition, right: String( String_ { parts: [ Raw( PartRaw { content: "/printer.cfg", span: Span { start: Position { line: 157, column: 43, }, end: Position { line: 157, column: 55, }, }, }, ), ], span: Span { start: Position { line: 157, column: 42, }, end: Position { line: 157, column: 56, }, }, }, ), }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "/etc/klipper.cfg", span: Span { start: Position { line: 158, column: 17, }, end: Position { line: 158, column: 33, }, }, }, ), ], span: Span { start: Position { line: 158, column: 16, }, end: Position { line: 158, column: 34, }, }, }, ), span: Span { start: Position { line: 156, column: 11, }, end: Position { line: 158, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "printerConfigFile", span: Span { start: Position { line: 159, column: 9, }, end: Position { line: 159, column: 26, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 160, column: 14, }, end: Position { line: 160, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 160, column: 18, }, end: Position { line: 160, column: 26, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 160, column: 30, }, end: Position { line: 160, column: 34, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "format", span: Span { start: Position { line: 161, column: 16, }, end: Position { line: 161, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 161, column: 23, }, end: Position { line: 161, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "klipper.cfg", span: Span { start: Position { line: 161, column: 33, }, end: Position { line: 161, column: 44, }, }, }, ), ], span: Span { start: Position { line: 161, column: 32, }, end: Position { line: 161, column: 45, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 161, column: 46, }, end: Position { line: 161, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 161, column: 50, }, end: Position { line: 161, column: 58, }, }, }, ), ], default: None, }, ), ], }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 162, column: 16, }, end: Position { line: 162, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 162, column: 20, }, end: Position { line: 162, column: 30, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 160, column: 11, }, end: Position { line: 162, column: 30, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 165, column: 9, }, end: Position { line: 165, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Klipper 3D Printer Firmware", span: Span { start: Position { line: 165, column: 24, }, end: Position { line: 165, column: 51, }, }, }, ), ], span: Span { start: Position { line: 165, column: 23, }, end: Position { line: 165, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 166, column: 9, }, end: Position { line: 166, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 166, column: 23, }, end: Position { line: 166, column: 40, }, }, }, ), ], span: Span { start: Position { line: 166, column: 22, }, end: Position { line: 166, column: 41, }, }, }, ), ], span: Span { start: Position { line: 166, column: 20, }, end: Position { line: 166, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 167, column: 9, }, end: Position { line: 167, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 167, column: 20, }, end: Position { line: 167, column: 34, }, }, }, ), ], span: Span { start: Position { line: 167, column: 19, }, end: Position { line: 167, column: 35, }, }, }, ), ], span: Span { start: Position { line: 167, column: 17, }, end: Position { line: 167, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "preStart", span: Span { start: Position { line: 168, column: 9, }, end: Position { line: 168, column: 17, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p ", span: Span { start: Position { line: 169, column: 1, }, end: Position { line: 169, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 169, column: 22, }, end: Position { line: 169, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfigFolder", span: Span { start: Position { line: 169, column: 26, }, end: Position { line: 169, column: 45, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 169, column: 1, }, end: Position { line: 170, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 170, column: 13, }, end: Position { line: 170, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optionalString", span: Span { start: Position { line: 170, column: 17, }, end: Position { line: 170, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 170, column: 33, }, end: Position { line: 170, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfig", span: Span { start: Position { line: 170, column: 37, }, end: Position { line: 170, column: 50, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[ -e ", span: Span { start: Position { line: 171, column: 1, }, end: Position { line: 171, column: 18, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "printerConfigPath", span: Span { start: Position { line: 171, column: 20, }, end: Position { line: 171, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: " ] || {\n cp ", span: Span { start: Position { line: 171, column: 1, }, end: Position { line: 172, column: 18, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "printerConfigFile", span: Span { start: Position { line: 172, column: 20, }, end: Position { line: 172, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 171, column: 1, }, end: Position { line: 172, column: 39, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "printerConfigPath", span: Span { start: Position { line: 172, column: 41, }, end: Position { line: 172, column: 58, }, }, }, ), }, ), Raw( PartRaw { content: "\n chmod +w ", span: Span { start: Position { line: 171, column: 1, }, end: Position { line: 173, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "printerConfigPath", span: Span { start: Position { line: 173, column: 26, }, end: Position { line: 173, column: 43, }, }, }, ), }, ), Raw( PartRaw { content: "\n}\n", span: Span { start: Position { line: 171, column: 1, }, end: Position { line: 175, column: 11, }, }, }, ), ], span: Span { start: Position { line: 170, column: 52, }, end: Position { line: 175, column: 13, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nmkdir -p ", span: Span { start: Position { line: 169, column: 1, }, end: Position { line: 176, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 176, column: 22, }, end: Position { line: 176, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mutableConfigFolder", span: Span { start: Position { line: 176, column: 26, }, end: Position { line: 176, column: 45, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/gcodes\n", span: Span { start: Position { line: 169, column: 1, }, end: Position { line: 177, column: 9, }, }, }, ), ], span: Span { start: Position { line: 168, column: 20, }, end: Position { line: 177, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 179, column: 9, }, end: Position { line: 179, column: 22, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 180, column: 11, }, end: Position { line: 180, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 180, column: 26, }, end: Position { line: 180, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 180, column: 30, }, end: Position { line: 180, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/lib/klipper/klippy.py ", span: Span { start: Position { line: 180, column: 24, }, end: Position { line: 180, column: 61, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "klippyArgs", span: Span { start: Position { line: 180, column: 63, }, end: Position { line: 180, column: 73, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 180, column: 24, }, end: Position { line: 180, column: 75, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "printerConfigPath", span: Span { start: Position { line: 180, column: 77, }, end: Position { line: 180, column: 94, }, }, }, ), }, ), ], span: Span { start: Position { line: 180, column: 23, }, end: Position { line: 180, column: 96, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RuntimeDirectory", span: Span { start: Position { line: 181, column: 11, }, end: Position { line: 181, column: 27, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 181, column: 31, }, end: Position { line: 181, column: 38, }, }, }, ), ], span: Span { start: Position { line: 181, column: 30, }, end: Position { line: 181, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectory", span: Span { start: Position { line: 182, column: 11, }, end: Position { line: 182, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 182, column: 29, }, end: Position { line: 182, column: 36, }, }, }, ), ], span: Span { start: Position { line: 182, column: 28, }, end: Position { line: 182, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "SupplementaryGroups", span: Span { start: Position { line: 183, column: 11, }, end: Position { line: 183, column: 30, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dialout", span: Span { start: Position { line: 183, column: 36, }, end: Position { line: 183, column: 43, }, }, }, ), ], span: Span { start: Position { line: 183, column: 35, }, end: Position { line: 183, column: 44, }, }, }, ), ], span: Span { start: Position { line: 183, column: 33, }, end: Position { line: 183, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WorkingDirectory", span: Span { start: Position { line: 184, column: 11, }, end: Position { line: 184, column: 27, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 184, column: 33, }, end: Position { line: 184, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 184, column: 37, }, end: Position { line: 184, column: 44, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/lib", span: Span { start: Position { line: 184, column: 31, }, end: Position { line: 184, column: 49, }, }, }, ), ], span: Span { start: Position { line: 184, column: 30, }, end: Position { line: 184, column: 50, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "OOMScoreAdjust", span: Span { start: Position { line: 185, column: 11, }, end: Position { line: 185, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "-999", span: Span { start: Position { line: 185, column: 29, }, end: Position { line: 185, column: 33, }, }, }, ), ], span: Span { start: Position { line: 185, column: 28, }, end: Position { line: 185, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CPUSchedulingPolicy", span: Span { start: Position { line: 186, column: 11, }, end: Position { line: 186, column: 30, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "rr", span: Span { start: Position { line: 186, column: 34, }, end: Position { line: 186, column: 36, }, }, }, ), ], span: Span { start: Position { line: 186, column: 33, }, end: Position { line: 186, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CPUSchedulingPriority", span: Span { start: Position { line: 187, column: 11, }, end: Position { line: 187, column: 32, }, }, }, ), ], to: Integer( Integer { value: "99", span: Span { start: Position { line: 187, column: 35, }, end: Position { line: 187, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "IOSchedulingClass", span: Span { start: Position { line: 188, column: 11, }, end: Position { line: 188, column: 28, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "realtime", span: Span { start: Position { line: 188, column: 32, }, end: Position { line: 188, column: 40, }, }, }, ), ], span: Span { start: Position { line: 188, column: 31, }, end: Position { line: 188, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "IOSchedulingPriority", span: Span { start: Position { line: 189, column: 11, }, end: Position { line: 189, column: 31, }, }, }, ), ], to: Integer( Integer { value: "0", span: Span { start: Position { line: 189, column: 34, }, end: Position { line: 189, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "UMask", span: Span { start: Position { line: 190, column: 11, }, end: Position { line: 190, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0002", span: Span { start: Position { line: 190, column: 20, }, end: Position { line: 190, column: 24, }, }, }, ), ], span: Span { start: Position { line: 190, column: 19, }, end: Position { line: 190, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 179, column: 25, }, end: Position { line: 191, column: 10, }, }, }, ), operator: Update, right: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 191, column: 18, }, end: Position { line: 191, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 191, column: 22, }, end: Position { line: 191, column: 26, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 191, column: 30, }, end: Position { line: 191, column: 34, }, }, }, ), }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Group", span: Span { start: Position { line: 192, column: 11, }, end: Position { line: 192, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 192, column: 19, }, end: Position { line: 192, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 192, column: 23, }, end: Position { line: 192, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 193, column: 11, }, end: Position { line: 193, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 193, column: 18, }, end: Position { line: 193, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 193, column: 22, }, end: Position { line: 193, column: 26, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 191, column: 40, }, end: Position { line: 194, column: 10, }, }, }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 195, column: 11, }, end: Position { line: 195, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 195, column: 25, }, end: Position { line: 195, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 196, column: 11, }, end: Position { line: 196, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "klipper", span: Span { start: Position { line: 196, column: 19, }, end: Position { line: 196, column: 26, }, }, }, ), ], span: Span { start: Position { line: 196, column: 18, }, end: Position { line: 196, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 194, column: 16, }, end: Position { line: 197, column: 10, }, }, }, ), span: Span { start: Position { line: 191, column: 15, }, end: Position { line: 197, column: 10, }, }, }, ), }, ), }, ), ], span: Span { start: Position { line: 164, column: 7, }, end: Position { line: 198, column: 8, }, }, }, ), span: Span { start: Position { line: 152, column: 7, }, end: Position { line: 198, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 200, column: 5, }, end: Position { line: 200, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 200, column: 17, }, end: Position { line: 200, column: 31, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 201, column: 12, }, end: Position { line: 201, column: 16, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 203, column: 9, }, end: Position { line: 203, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "a", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "b", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "a", span: Span { start: Position { line: 203, column: 28, }, end: Position { line: 203, column: 29, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 203, column: 33, }, end: Position { line: 203, column: 37, }, }, }, ), }, ), then: Identifier( Identifier { id: "a", span: Span { start: Position { line: 203, column: 43, }, end: Position { line: 203, column: 44, }, }, }, ), else_: Identifier( Identifier { id: "b", span: Span { start: Position { line: 203, column: 50, }, end: Position { line: 203, column: 51, }, }, }, ), span: Span { start: Position { line: 203, column: 25, }, end: Position { line: 203, column: 51, }, }, }, ), span: Span { start: Position { line: 203, column: 22, }, end: Position { line: 203, column: 51, }, }, }, ), span: Span { start: Position { line: 203, column: 19, }, end: Position { line: 203, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 204, column: 9, }, end: Position { line: 204, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterAttrs", span: Span { start: Position { line: 204, column: 21, }, end: Position { line: 204, column: 32, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 204, column: 40, }, end: Position { line: 204, column: 41, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 204, column: 44, }, end: Position { line: 204, column: 48, }, }, }, ), }, ), span: Span { start: Position { line: 204, column: 37, }, end: Position { line: 204, column: 48, }, }, }, ), span: Span { start: Position { line: 204, column: 34, }, end: Position { line: 204, column: 48, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs", span: Span { start: Position { line: 204, column: 51, }, end: Position { line: 204, column: 59, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "mcu", }, ), body: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "enable", default: None, }, FunctionHeadDestructuredArgument { identifier: "configFile", default: None, }, FunctionHeadDestructuredArgument { identifier: "serial", default: None, }, ], }, ), body: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "enable", span: Span { start: Position { line: 205, column: 52, }, end: Position { line: 205, column: 58, }, }, }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 205, column: 64, }, end: Position { line: 205, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "klipper-firmware", span: Span { start: Position { line: 205, column: 69, }, end: Position { line: 205, column: 85, }, }, }, ), Raw( PartRaw { content: "override", span: Span { start: Position { line: 205, column: 86, }, end: Position { line: 205, column: 94, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mcu", span: Span { start: Position { line: 206, column: 13, }, end: Position { line: 206, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 206, column: 19, }, end: Position { line: 206, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strings", span: Span { start: Position { line: 206, column: 23, }, end: Position { line: 206, column: 30, }, }, }, ), Raw( PartRaw { content: "sanitizeDerivationName", span: Span { start: Position { line: 206, column: 31, }, end: Position { line: 206, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 206, column: 54, }, end: Position { line: 206, column: 57, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwareConfig", span: Span { start: Position { line: 207, column: 13, }, end: Position { line: 207, column: 27, }, }, }, ), ], to: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 207, column: 30, }, end: Position { line: 207, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 205, column: 95, }, end: Position { line: 208, column: 12, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "null", span: Span { start: Position { line: 208, column: 18, }, end: Position { line: 208, column: 22, }, }, }, ), span: Span { start: Position { line: 205, column: 49, }, end: Position { line: 208, column: 22, }, }, }, ), span: Span { start: Position { line: 205, column: 17, }, end: Position { line: 208, column: 22, }, }, }, ), span: Span { start: Position { line: 205, column: 12, }, end: Position { line: 208, column: 22, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 209, column: 11, }, end: Position { line: 209, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 209, column: 15, }, end: Position { line: 209, column: 24, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwareFlasher", span: Span { start: Position { line: 210, column: 9, }, end: Position { line: 210, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 210, column: 27, }, end: Position { line: 210, column: 41, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "mcu", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "firmware", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 211, column: 27, }, end: Position { line: 211, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "klipper-flash", span: Span { start: Position { line: 211, column: 32, }, end: Position { line: 211, column: 45, }, }, }, ), Raw( PartRaw { content: "override", span: Span { start: Position { line: 211, column: 46, }, end: Position { line: 211, column: 54, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mcu", span: Span { start: Position { line: 212, column: 13, }, end: Position { line: 212, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 212, column: 19, }, end: Position { line: 212, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strings", span: Span { start: Position { line: 212, column: 23, }, end: Position { line: 212, column: 30, }, }, }, ), Raw( PartRaw { content: "sanitizeDerivationName", span: Span { start: Position { line: 212, column: 31, }, end: Position { line: 212, column: 53, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 212, column: 54, }, end: Position { line: 212, column: 57, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "klipper-firmware", span: Span { start: Position { line: 213, column: 13, }, end: Position { line: 213, column: 29, }, }, }, ), ], to: Identifier( Identifier { id: "firmware", span: Span { start: Position { line: 213, column: 32, }, end: Position { line: 213, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "flashDevice", span: Span { start: Position { line: 214, column: 13, }, end: Position { line: 214, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "default", span: Span { start: Position { line: 214, column: 27, }, end: Position { line: 214, column: 34, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 214, column: 35, }, end: Position { line: 214, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 214, column: 39, }, end: Position { line: 214, column: 48, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 214, column: 52, }, end: Position { line: 214, column: 55, }, }, }, ), }, ), ], span: Span { start: Position { line: 214, column: 49, }, end: Position { line: 214, column: 57, }, }, }, ), }, ), Raw( PartRaw { content: "serial", span: Span { start: Position { line: 214, column: 58, }, end: Position { line: 214, column: 64, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 214, column: 65, }, end: Position { line: 214, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 214, column: 69, }, end: Position { line: 214, column: 77, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 214, column: 81, }, end: Position { line: 214, column: 84, }, }, }, ), }, ), ], span: Span { start: Position { line: 214, column: 78, }, end: Position { line: 214, column: 86, }, }, }, ), }, ), Raw( PartRaw { content: "serial", span: Span { start: Position { line: 214, column: 87, }, end: Position { line: 214, column: 93, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "firmwareConfig", span: Span { start: Position { line: 215, column: 13, }, end: Position { line: 215, column: 27, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 215, column: 30, }, end: Position { line: 215, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "firmwares", span: Span { start: Position { line: 215, column: 34, }, end: Position { line: 215, column: 43, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mcu", span: Span { start: Position { line: 215, column: 47, }, end: Position { line: 215, column: 50, }, }, }, ), }, ), ], span: Span { start: Position { line: 215, column: 44, }, end: Position { line: 215, column: 52, }, }, }, ), }, ), Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 215, column: 53, }, end: Position { line: 215, column: 63, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 211, column: 55, }, end: Position { line: 216, column: 12, }, }, }, ), ], }, ), span: Span { start: Position { line: 211, column: 17, }, end: Position { line: 216, column: 12, }, }, }, ), span: Span { start: Position { line: 211, column: 12, }, end: Position { line: 216, column: 12, }, }, }, ), Identifier( Identifier { id: "firmwares", span: Span { start: Position { line: 217, column: 11, }, end: Position { line: 217, column: 20, }, }, }, ), ], }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: List( List { elements: [ Identifier( Identifier { id: "klipper-genconf", span: Span { start: Position { line: 219, column: 9, }, end: Position { line: 219, column: 24, }, }, }, ), ], span: Span { start: Position { line: 219, column: 7, }, end: Position { line: 219, column: 26, }, }, }, ), operator: Concatenation, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "firmwareFlasher", span: Span { start: Position { line: 219, column: 30, }, end: Position { line: 219, column: 45, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 219, column: 49, }, end: Position { line: 219, column: 59, }, }, }, ), arguments: [ Identifier( Identifier { id: "firmwares", span: Span { start: Position { line: 219, column: 60, }, end: Position { line: 219, column: 69, }, }, }, ), ], }, ), }, ), }, ), span: Span { start: Position { line: 202, column: 7, }, end: Position { line: 219, column: 69, }, }, }, ), span: Span { start: Position { line: 201, column: 7, }, end: Position { line: 219, column: 69, }, }, }, ), }, ), ], span: Span { start: Position { line: 122, column: 28, }, end: Position { line: 220, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 221, column: 3, }, end: Position { line: 221, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 221, column: 8, }, end: Position { line: 221, column: 19, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 222, column: 5, }, end: Position { line: 222, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "cab404", span: Span { start: Position { line: 222, column: 17, }, end: Position { line: 222, column: 23, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 221, column: 22, }, end: Position { line: 223, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 224, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 224, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 224, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 224, column: 2, }, }, }, )