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: "hardware", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "printers", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ppdOptionsString", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 19, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "options", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 5, column: 31, }, end: Position { line: 5, column: 45, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "options", span: Span { start: Position { line: 5, column: 47, }, end: Position { line: 5, column: 54, }, }, }, ), operator: NotEqualTo, right: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 5, column: 58, }, end: Position { line: 5, column: 60, }, }, }, ), }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 6, column: 6, }, end: Position { line: 6, column: 22, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 6, column: 24, }, end: Position { line: 6, column: 25, }, }, }, ), ], span: Span { start: Position { line: 6, column: 23, }, end: Position { line: 6, column: 26, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 7, column: 8, }, end: Position { line: 7, column: 22, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "value", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "-o '", span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 49, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 7, column: 44, }, end: Position { line: 7, column: 48, }, }, }, ), }, ), Raw( PartRaw { content: "'='", span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "value", span: Span { start: Position { line: 7, column: 54, }, end: Position { line: 7, column: 59, }, }, }, ), }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 61, }, }, }, ), ], span: Span { start: Position { line: 7, column: 37, }, end: Position { line: 7, column: 62, }, }, }, ), span: Span { start: Position { line: 7, column: 30, }, end: Position { line: 7, column: 62, }, }, }, ), span: Span { start: Position { line: 7, column: 24, }, end: Position { line: 7, column: 62, }, }, }, ), Identifier( Identifier { id: "options", span: Span { start: Position { line: 7, column: 64, }, end: Position { line: 7, column: 71, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 5, column: 22, }, end: Position { line: 8, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ensurePrinter", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "p", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "cups", span: Span { start: Position { line: 10, column: 12, }, end: Position { line: 10, column: 16, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/lpadmin -p ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 33, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 10, column: 36, }, end: Position { line: 10, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 10, column: 38, }, end: Position { line: 10, column: 42, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "' -E \\\n ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 11, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 11, column: 25, }, end: Position { line: 11, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 11, column: 27, }, end: Position { line: 11, column: 35, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 11, column: 39, }, end: Position { line: 11, column: 43, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "-L '", span: Span { start: Position { line: 11, column: 46, }, end: Position { line: 11, column: 63, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 11, column: 52, }, end: Position { line: 11, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 11, column: 54, }, end: Position { line: 11, column: 62, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 11, column: 46, }, end: Position { line: 11, column: 64, }, }, }, ), ], span: Span { start: Position { line: 11, column: 45, }, end: Position { line: 11, column: 65, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 12, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 12, column: 25, }, end: Position { line: 12, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 12, column: 27, }, end: Position { line: 12, column: 38, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 12, column: 42, }, end: Position { line: 12, column: 46, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "-D '", span: Span { start: Position { line: 12, column: 49, }, end: Position { line: 12, column: 69, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 12, column: 55, }, end: Position { line: 12, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 12, column: 57, }, end: Position { line: 12, column: 68, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 12, column: 49, }, end: Position { line: 12, column: 70, }, }, }, ), ], span: Span { start: Position { line: 12, column: 48, }, end: Position { line: 12, column: 71, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n -v ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 13, column: 10, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 13, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 13, column: 13, }, end: Position { line: 13, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "deviceUri", span: Span { start: Position { line: 13, column: 15, }, end: Position { line: 13, column: 24, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "' \\\n -m ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 14, column: 10, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 14, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "model", span: Span { start: Position { line: 14, column: 15, }, end: Position { line: 14, column: 20, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "' \\\n ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 15, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "ppdOptionsString", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 25, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 15, column: 26, }, end: Position { line: 15, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ppdOptions", span: Span { start: Position { line: 15, column: 28, }, end: Position { line: 15, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 16, column: 3, }, }, }, ), ], span: Span { start: Position { line: 9, column: 22, }, end: Position { line: 16, column: 5, }, }, }, ), span: Span { start: Position { line: 9, column: 19, }, end: Position { line: 16, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ensureDefaultPrinter", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 18, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "cups", span: Span { start: Position { line: 18, column: 12, }, end: Position { line: 18, column: 16, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/lpadmin -d ", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 18, column: 33, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 18, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 18, column: 36, }, end: Position { line: 18, column: 40, }, }, }, ), }, ), Raw( PartRaw { content: "'\n", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 19, column: 3, }, }, }, ), ], span: Span { start: Position { line: 17, column: 32, }, end: Position { line: 19, column: 5, }, }, }, ), span: Span { start: Position { line: 17, column: 26, }, end: Position { line: 19, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "noInvalidChars", span: Span { start: Position { line: 22, column: 3, }, end: Position { line: 22, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "str", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "all", span: Span { start: Position { line: 22, column: 25, }, end: Position { line: 22, column: 28, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "c", }, ), body: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "c", span: Span { start: Position { line: 22, column: 33, }, end: Position { line: 22, column: 34, }, }, }, ), operator: NotEqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "#", span: Span { start: Position { line: 22, column: 39, }, end: Position { line: 22, column: 40, }, }, }, ), ], span: Span { start: Position { line: 22, column: 38, }, end: Position { line: 22, column: 41, }, }, }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "c", span: Span { start: Position { line: 22, column: 45, }, end: Position { line: 22, column: 46, }, }, }, ), operator: NotEqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "/", span: Span { start: Position { line: 22, column: 51, }, end: Position { line: 22, column: 52, }, }, }, ), ], span: Span { start: Position { line: 22, column: 50, }, end: Position { line: 22, column: 53, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 22, column: 30, }, end: Position { line: 22, column: 53, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "stringToCharacters", span: Span { start: Position { line: 22, column: 56, }, end: Position { line: 22, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 22, column: 75, }, end: Position { line: 22, column: 78, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 79, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "printerName", span: Span { start: Position { line: 23, column: 3, }, end: Position { line: 23, column: 14, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 18, }, end: Position { line: 23, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "addCheck", span: Span { start: Position { line: 23, column: 24, }, end: Position { line: 23, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 34, }, end: Position { line: 23, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "strMatching", span: Span { start: Position { line: 23, column: 40, }, end: Position { line: 23, column: 51, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "[[:graph:]]+", span: Span { start: Position { line: 23, column: 53, }, end: Position { line: 23, column: 65, }, }, }, ), ], span: Span { start: Position { line: 23, column: 52, }, end: Position { line: 23, column: 66, }, }, }, ), ], }, ), Identifier( Identifier { id: "noInvalidChars", span: Span { start: Position { line: 23, column: 68, }, end: Position { line: 23, column: 82, }, }, }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 24, column: 10, }, end: Position { line: 24, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "printable string without spaces, # and /", span: Span { start: Position { line: 24, column: 25, }, end: Position { line: 24, column: 65, }, }, }, ), ], span: Span { start: Position { line: 24, column: 24, }, end: Position { line: 24, column: 66, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 8, }, end: Position { line: 24, column: 69, }, }, }, ), }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 28, column: 3, }, end: Position { line: 28, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 13, }, }, }, ), Raw( PartRaw { content: "printers", span: Span { start: Position { line: 29, column: 14, }, end: Position { line: 29, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ensureDefaultPrinter", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 27, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 30, column: 30, }, end: Position { line: 30, column: 38, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 31, column: 22, }, end: Position { line: 31, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "printerName", span: Span { start: Position { line: 31, column: 29, }, end: Position { line: 31, column: 40, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 33, column: 23, }, end: Position { line: 33, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 33, column: 27, }, end: Position { line: 33, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Ensures the named printer is the default CUPS printer / printer queue.\n", span: Span { start: Position { line: 34, column: 1, }, end: Position { line: 35, column: 9, }, }, }, ), ], span: Span { start: Position { line: 33, column: 33, }, end: Position { line: 35, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 39, }, end: Position { line: 36, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ensurePrinters", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 37, column: 24, }, end: Position { line: 37, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 38, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 38, column: 27, }, end: Position { line: 38, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Will regularly ensure that the given CUPS printers are configured as declared here.\nIf a printer's options are manually changed afterwards, they will be overwritten eventually.\nThis option will never delete any printer, even if removed from this list.\nYou can check existing printers with {command}`lpstat -s`\nand remove printers with {command}`lpadmin -x `.\nPrinters not listed here can still be manually configured.\n", span: Span { start: Position { line: 39, column: 1, }, end: Position { line: 45, column: 9, }, }, }, ), ], span: Span { start: Position { line: 38, column: 33, }, end: Position { line: 45, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 46, column: 19, }, end: Position { line: 46, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 47, column: 16, }, end: Position { line: 47, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 47, column: 22, }, end: Position { line: 47, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 47, column: 30, }, end: Position { line: 47, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 47, column: 36, }, end: Position { line: 47, column: 45, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 48, column: 11, }, end: Position { line: 48, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 49, column: 20, }, end: Position { line: 49, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 50, column: 15, }, end: Position { line: 50, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "printerName", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 51, column: 15, }, end: Position { line: 51, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "BrotherHL_Workroom", span: Span { start: Position { line: 51, column: 26, }, end: Position { line: 51, column: 44, }, }, }, ), ], span: Span { start: Position { line: 51, column: 25, }, end: Position { line: 51, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 52, column: 15, }, end: Position { line: 52, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 52, column: 29, }, end: Position { line: 52, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 52, column: 33, }, end: Position { line: 52, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Name of the printer / printer queue.\nMay contain any printable characters except \"/\", \"#\", and space.\n", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 55, column: 15, }, }, }, ), ], span: Span { start: Position { line: 52, column: 39, }, end: Position { line: 55, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 49, column: 29, }, end: Position { line: 56, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 57, column: 13, }, end: Position { line: 57, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 57, column: 24, }, end: Position { line: 57, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 58, column: 15, }, end: Position { line: 58, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 58, column: 22, }, end: Position { line: 58, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 58, column: 28, }, end: Position { line: 58, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 58, column: 35, }, end: Position { line: 58, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 58, column: 41, }, end: Position { line: 58, column: 44, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 59, column: 15, }, end: Position { line: 59, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 59, column: 25, }, end: Position { line: 59, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 60, column: 15, }, end: Position { line: 60, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Workroom", span: Span { start: Position { line: 60, column: 26, }, end: Position { line: 60, column: 34, }, }, }, ), ], span: Span { start: Position { line: 60, column: 25, }, end: Position { line: 60, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 61, column: 15, }, end: Position { line: 61, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 61, column: 29, }, end: Position { line: 61, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 61, column: 33, }, end: Position { line: 61, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Optional human-readable location.\n", span: Span { start: Position { line: 62, column: 1, }, end: Position { line: 63, column: 15, }, }, }, ), ], span: Span { start: Position { line: 61, column: 39, }, end: Position { line: 63, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 57, column: 33, }, end: Position { line: 64, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 65, column: 13, }, end: Position { line: 65, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 66, column: 15, }, end: Position { line: 66, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 66, column: 22, }, end: Position { line: 66, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 66, column: 28, }, end: Position { line: 66, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 66, column: 35, }, end: Position { line: 66, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 66, column: 41, }, end: Position { line: 66, column: 44, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 67, column: 15, }, end: Position { line: 67, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 67, column: 25, }, end: Position { line: 67, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 68, column: 15, }, end: Position { line: 68, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Brother HL-5140", span: Span { start: Position { line: 68, column: 26, }, end: Position { line: 68, column: 41, }, }, }, ), ], span: Span { start: Position { line: 68, column: 25, }, end: Position { line: 68, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 69, column: 15, }, end: Position { line: 69, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 69, column: 29, }, end: Position { line: 69, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 69, column: 33, }, end: Position { line: 69, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Optional human-readable description.\n", span: Span { start: Position { line: 70, column: 1, }, end: Position { line: 71, column: 15, }, }, }, ), ], span: Span { start: Position { line: 69, column: 39, }, end: Position { line: 71, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 65, column: 36, }, end: Position { line: 72, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "deviceUri", span: Span { start: Position { line: 73, column: 13, }, end: Position { line: 73, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 73, column: 25, }, end: Position { line: 73, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 74, column: 15, }, end: Position { line: 74, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 74, column: 22, }, end: Position { line: 74, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 74, column: 28, }, end: Position { line: 74, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 75, column: 15, }, end: Position { line: 75, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 75, column: 25, }, end: Position { line: 75, column: 42, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "\"ipp://printserver.local/printers/BrotherHL_Workroom\"\n\"usb://HP/DESKJET%20940C?serial=CN16E6C364BH\"\n", span: Span { start: Position { line: 76, column: 1, }, end: Position { line: 78, column: 15, }, }, }, ), ], span: Span { start: Position { line: 75, column: 43, }, end: Position { line: 78, column: 17, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 79, column: 15, }, end: Position { line: 79, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 79, column: 29, }, end: Position { line: 79, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 79, column: 33, }, end: Position { line: 79, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "How to reach the printer.\n{command}`lpinfo -v` shows a list of supported device URIs and schemes.\n", span: Span { start: Position { line: 80, column: 1, }, end: Position { line: 82, column: 15, }, }, }, ), ], span: Span { start: Position { line: 79, column: 39, }, end: Position { line: 82, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 73, column: 34, }, end: Position { line: 83, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "model", span: Span { start: Position { line: 84, column: 13, }, end: Position { line: 84, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 84, column: 21, }, end: Position { line: 84, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 85, column: 15, }, end: Position { line: 85, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 85, column: 22, }, end: Position { line: 85, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 85, column: 28, }, end: Position { line: 85, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 86, column: 15, }, end: Position { line: 86, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 86, column: 25, }, end: Position { line: 86, column: 42, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "\"gutenprint.", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 87, column: 29, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 87, column: 32, }, }, }, ), Raw( PartRaw { content: "{lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}://brother-hl-5140/expert\"\n", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 88, column: 15, }, }, }, ), ], span: Span { start: Position { line: 86, column: 43, }, end: Position { line: 88, column: 17, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 89, column: 15, }, end: Position { line: 89, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 89, column: 29, }, end: Position { line: 89, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 89, column: 33, }, end: Position { line: 89, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Location of the ppd driver file for the printer.\n{command}`lpinfo -m` shows a list of supported models.\n", span: Span { start: Position { line: 90, column: 1, }, end: Position { line: 92, column: 15, }, }, }, ), ], span: Span { start: Position { line: 89, column: 39, }, end: Position { line: 92, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 84, column: 30, }, end: Position { line: 93, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ppdOptions", span: Span { start: Position { line: 94, column: 13, }, end: Position { line: 94, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 94, column: 26, }, end: Position { line: 94, column: 34, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 95, column: 15, }, end: Position { line: 95, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 95, column: 22, }, end: Position { line: 95, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsOf", span: Span { start: Position { line: 95, column: 28, }, end: Position { line: 95, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 95, column: 36, }, end: Position { line: 95, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 95, column: 42, }, end: Position { line: 95, column: 45, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 96, column: 15, }, end: Position { line: 96, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PageSize", span: Span { start: Position { line: 97, column: 17, }, end: Position { line: 97, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "A4", span: Span { start: Position { line: 97, column: 29, }, end: Position { line: 97, column: 31, }, }, }, ), ], span: Span { start: Position { line: 97, column: 28, }, end: Position { line: 97, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Duplex", span: Span { start: Position { line: 98, column: 17, }, end: Position { line: 98, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "DuplexNoTumble", span: Span { start: Position { line: 98, column: 27, }, end: Position { line: 98, column: 41, }, }, }, ), ], span: Span { start: Position { line: 98, column: 26, }, end: Position { line: 98, column: 42, }, }, }, ), }, ), ], span: Span { start: Position { line: 96, column: 25, }, end: Position { line: 99, column: 16, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 100, column: 15, }, end: Position { line: 100, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 100, column: 25, }, end: Position { line: 100, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 101, column: 15, }, end: Position { line: 101, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 101, column: 29, }, end: Position { line: 101, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 101, column: 33, }, end: Position { line: 101, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Sets PPD options for the printer.\n{command}`lpoptions [-p printername] -l` shows suported PPD options for the given printer.\n", span: Span { start: Position { line: 102, column: 1, }, end: Position { line: 104, column: 15, }, }, }, ), ], span: Span { start: Position { line: 101, column: 39, }, end: Position { line: 104, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 94, column: 35, }, end: Position { line: 105, column: 14, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 48, column: 21, }, end: Position { line: 106, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 46, }, end: Position { line: 107, column: 10, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 37, column: 33, }, end: Position { line: 108, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 29, column: 25, }, end: Position { line: 109, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 28, column: 13, }, end: Position { line: 110, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 112, column: 3, }, end: Position { line: 112, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 112, column: 12, }, end: Position { line: 112, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 112, column: 18, }, end: Position { line: 112, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ensurePrinters", span: Span { start: Position { line: 112, column: 22, }, end: Position { line: 112, column: 36, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: List( List { elements: [], span: Span { start: Position { line: 112, column: 40, }, end: Position { line: 112, column: 42, }, }, }, ), }, ), operator: LogicalAnd, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 112, column: 46, }, end: Position { line: 112, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 112, column: 53, }, end: Position { line: 112, column: 61, }, }, }, ), Raw( PartRaw { content: "printing", span: Span { start: Position { line: 112, column: 62, }, end: Position { line: 112, column: 70, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 112, column: 71, }, end: Position { line: 112, column: 77, }, }, }, ), ], default: None, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 113, column: 5, }, end: Position { line: 113, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 113, column: 13, }, end: Position { line: 113, column: 21, }, }, }, ), Raw( PartRaw { content: "ensure-printers", span: Span { start: Position { line: 113, column: 22, }, end: Position { line: 113, column: 37, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cupsUnit", span: Span { start: Position { line: 114, column: 7, }, end: Position { line: 114, column: 15, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 114, column: 21, }, end: Position { line: 114, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 114, column: 28, }, end: Position { line: 114, column: 36, }, }, }, ), Raw( PartRaw { content: "printing", span: Span { start: Position { line: 114, column: 37, }, end: Position { line: 114, column: 45, }, }, }, ), Raw( PartRaw { content: "startWhenNeeded", span: Span { start: Position { line: 114, column: 46, }, end: Position { line: 114, column: 61, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "cups.socket", span: Span { start: Position { line: 114, column: 68, }, end: Position { line: 114, column: 79, }, }, }, ), ], span: Span { start: Position { line: 114, column: 67, }, end: Position { line: 114, column: 80, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "cups.service", span: Span { start: Position { line: 114, column: 87, }, end: Position { line: 114, column: 99, }, }, }, ), ], span: Span { start: Position { line: 114, column: 86, }, end: Position { line: 114, column: 100, }, }, }, ), span: Span { start: Position { line: 114, column: 18, }, end: Position { line: 114, column: 100, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 116, column: 7, }, end: Position { line: 116, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Ensure NixOS-configured CUPS printers", span: Span { start: Position { line: 116, column: 22, }, end: Position { line: 116, column: 59, }, }, }, ), ], span: Span { start: Position { line: 116, column: 21, }, end: Position { line: 116, column: 60, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 117, column: 7, }, end: Position { line: 117, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 117, column: 21, }, end: Position { line: 117, column: 38, }, }, }, ), ], span: Span { start: Position { line: 117, column: 20, }, end: Position { line: 117, column: 39, }, }, }, ), ], span: Span { start: Position { line: 117, column: 18, }, end: Position { line: 117, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "requires", span: Span { start: Position { line: 118, column: 7, }, end: Position { line: 118, column: 15, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "cupsUnit", span: Span { start: Position { line: 118, column: 20, }, end: Position { line: 118, column: 28, }, }, }, ), ], span: Span { start: Position { line: 118, column: 18, }, end: Position { line: 118, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 119, column: 7, }, end: Position { line: 119, column: 12, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "cupsUnit", span: Span { start: Position { line: 119, column: 17, }, end: Position { line: 119, column: 25, }, }, }, ), ], span: Span { start: Position { line: 119, column: 15, }, end: Position { line: 119, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 121, column: 7, }, end: Position { line: 121, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 122, column: 9, }, end: Position { line: 122, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 122, column: 17, }, end: Position { line: 122, column: 24, }, }, }, ), ], span: Span { start: Position { line: 122, column: 16, }, end: Position { line: 122, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RemainAfterExit", span: Span { start: Position { line: 123, column: 9, }, end: Position { line: 123, column: 24, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 123, column: 27, }, end: Position { line: 123, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 121, column: 23, }, end: Position { line: 124, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 126, column: 7, }, end: Position { line: 126, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 126, column: 16, }, end: Position { line: 126, column: 35, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 126, column: 37, }, end: Position { line: 126, column: 39, }, }, }, ), ], span: Span { start: Position { line: 126, column: 36, }, end: Position { line: 126, column: 40, }, }, }, ), Identifier( Identifier { id: "ensurePrinter", span: Span { start: Position { line: 126, column: 41, }, end: Position { line: 126, column: 54, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 126, column: 55, }, end: Position { line: 126, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ensurePrinters", span: Span { start: Position { line: 126, column: 59, }, end: Position { line: 126, column: 73, }, }, }, ), ], default: None, }, ), ], }, ), operator: Addition, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 127, column: 11, }, end: Position { line: 127, column: 25, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 127, column: 27, }, end: Position { line: 127, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ensureDefaultPrinter", span: Span { start: Position { line: 127, column: 31, }, end: Position { line: 127, column: 51, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 127, column: 55, }, end: Position { line: 127, column: 59, }, }, }, ), }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "ensureDefaultPrinter", span: Span { start: Position { line: 127, column: 62, }, end: Position { line: 127, column: 82, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 127, column: 83, }, end: Position { line: 127, column: 86, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ensureDefaultPrinter", span: Span { start: Position { line: 127, column: 87, }, end: Position { line: 127, column: 107, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), }, ), ], span: Span { start: Position { line: 115, column: 8, }, end: Position { line: 128, column: 6, }, }, }, ), span: Span { start: Position { line: 113, column: 40, }, end: Position { line: 128, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 112, column: 79, }, end: Position { line: 129, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 4, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 130, column: 2, }, }, }, )