Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 5, column: 9, }, end: Position { line: 5, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 5, column: 16, }, end: Position { line: 5, column: 24, }, }, }, ), Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 32, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 7, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "doc", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 8, }, }, }, ), ], to: Path( Path { parts: [ Raw( PartRaw { content: "./trezord.xml", span: Span { start: Position { line: 11, column: 11, }, end: Position { line: 11, column: 24, }, }, }, ), ], span: Span { start: Position { line: 11, column: 11, }, end: Position { line: 11, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 10, }, end: Position { line: 12, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 13, }, }, }, ), Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 17, column: 14, }, end: Position { line: 17, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 18, column: 16, }, end: Position { line: 18, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 19, column: 22, }, end: Position { line: 19, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 27, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enable Trezor bridge daemon, for use with Trezor hardware bitcoin wallets.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 9, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 23, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 25, }, end: Position { line: 24, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "emulator", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 15, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 26, column: 16, }, end: Position { line: 26, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 26, column: 25, }, end: Position { line: 26, column: 33, }, }, }, ), 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: "bool", 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: Identifier( Identifier { id: "false", span: Span { start: Position { line: 28, column: 19, }, end: Position { line: 28, column: 24, }, }, }, ), }, ), 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: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enable Trezor emulator support.\n", span: Span { start: Position { line: 30, column: 1, }, end: Position { line: 31, column: 11, }, }, }, ), ], span: Span { start: Position { line: 29, column: 33, }, end: Position { line: 31, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 26, column: 34, }, end: Position { line: 32, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "emulator", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 15, }, }, }, ), Raw( PartRaw { content: "port", span: Span { start: Position { line: 34, column: 16, }, end: Position { line: 34, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 34, column: 23, }, end: Position { line: 34, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 35, column: 16, }, end: Position { line: 35, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 35, column: 22, }, end: Position { line: 35, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 16, }, }, }, ), ], to: Integer( Integer { value: "21324", span: Span { start: Position { line: 36, column: 19, }, end: Position { line: 36, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 23, }, end: Position { line: 37, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 37, column: 27, }, end: Position { line: 37, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Listening port for the Trezor emulator.\n", span: Span { start: Position { line: 38, column: 1, }, end: Position { line: 39, column: 11, }, }, }, ), ], span: Span { start: Position { line: 37, column: 33, }, end: Position { line: 39, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 34, column: 32, }, end: Position { line: 40, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 24, }, end: Position { line: 41, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 16, column: 13, }, end: Position { line: 42, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 46, column: 3, }, end: Position { line: 46, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 46, column: 12, }, end: Position { line: 46, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 46, column: 17, }, end: Position { line: 46, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 46, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 47, column: 5, }, end: Position { line: 47, column: 13, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 47, column: 14, }, end: Position { line: 47, column: 18, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 47, column: 19, }, end: Position { line: 47, column: 27, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 47, column: 32, }, end: Position { line: 47, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "trezor-udev-rules", span: Span { start: Position { line: 47, column: 37, }, end: Position { line: 47, column: 54, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 47, column: 30, }, end: Position { line: 47, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 21, }, }, }, ), Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Trezor Bridge", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 35, }, }, }, ), ], span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 32, }, }, }, ), ], span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 33, }, }, }, ), ], span: Span { start: Position { line: 51, column: 15, }, end: Position { line: 51, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 38, }, }, }, ), ], span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 39, }, }, }, ), ], span: Span { start: Position { line: 52, column: 18, }, end: Position { line: 52, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 11, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 53, column: 14, }, end: Position { line: 53, column: 16, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 54, column: 7, }, end: Position { line: 54, column: 20, }, }, }, ), ], to: 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: String( String_ { parts: [ Raw( PartRaw { content: "simple", span: Span { start: Position { line: 55, column: 17, }, end: Position { line: 55, column: 23, }, }, }, ), ], span: Span { start: Position { line: 55, column: 16, }, end: Position { line: 55, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 56, column: 24, }, end: Position { line: 56, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 56, column: 29, }, end: Position { line: 56, column: 36, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/trezord-go ", span: Span { start: Position { line: 56, column: 22, }, end: Position { line: 56, column: 53, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 56, column: 55, }, end: Position { line: 56, column: 69, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 56, column: 70, }, end: Position { line: 56, column: 73, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "emulator", span: Span { start: Position { line: 56, column: 74, }, end: Position { line: 56, column: 82, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 56, column: 83, }, end: Position { line: 56, column: 89, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "-e ", span: Span { start: Position { line: 56, column: 91, }, end: Position { line: 56, column: 132, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 56, column: 96, }, end: Position { line: 56, column: 104, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toString", span: Span { start: Position { line: 56, column: 105, }, end: Position { line: 56, column: 113, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 56, column: 114, }, end: Position { line: 56, column: 117, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "emulator", span: Span { start: Position { line: 56, column: 118, }, end: Position { line: 56, column: 126, }, }, }, ), Raw( PartRaw { content: "port", span: Span { start: Position { line: 56, column: 127, }, end: Position { line: 56, column: 131, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 56, column: 90, }, end: Position { line: 56, column: 133, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 56, column: 21, }, end: Position { line: 56, column: 135, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 57, column: 17, }, end: Position { line: 57, column: 24, }, }, }, ), ], span: Span { start: Position { line: 57, column: 16, }, end: Position { line: 57, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 54, column: 23, }, end: Position { line: 58, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 32, }, end: Position { line: 59, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 61, column: 5, }, end: Position { line: 61, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 61, column: 11, }, end: Position { line: 61, column: 16, }, }, }, ), Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 61, column: 17, }, end: Position { line: 61, column: 24, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 62, column: 7, }, end: Position { line: 62, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 62, column: 16, }, end: Position { line: 62, column: 23, }, }, }, ), ], span: Span { start: Position { line: 62, column: 15, }, end: Position { line: 62, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 63, column: 7, }, end: Position { line: 63, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Trezor bridge daemon user", span: Span { start: Position { line: 63, column: 22, }, end: Position { line: 63, column: 47, }, }, }, ), ], span: Span { start: Position { line: 63, column: 21, }, end: Position { line: 63, column: 48, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 64, column: 7, }, end: Position { line: 64, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 64, column: 22, }, end: Position { line: 64, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 61, column: 27, }, end: Position { line: 65, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 67, column: 5, }, end: Position { line: 67, column: 10, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 67, column: 11, }, end: Position { line: 67, column: 17, }, }, }, ), Raw( PartRaw { content: "trezord", span: Span { start: Position { line: 67, column: 18, }, end: Position { line: 67, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 67, column: 28, }, end: Position { line: 67, column: 30, }, }, }, ), }, ), ], span: Span { start: Position { line: 46, column: 28, }, end: Position { line: 68, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 6, column: 4, }, end: Position { line: 69, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 69, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 69, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 69, column: 2, }, }, }, )