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: "mjolnir", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "yamlConfig", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 13, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 8, column: 14, }, end: Position { line: 8, column: 17, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 8, column: 19, }, end: Position { line: 8, column: 27, }, }, }, ), Raw( PartRaw { content: "managementRoom", span: Span { start: Position { line: 8, column: 28, }, end: Position { line: 8, column: 42, }, }, }, ), Raw( PartRaw { content: "protectedRooms", span: Span { start: Position { line: 8, column: 43, }, end: Position { line: 8, column: 57, }, }, }, ), ], span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 8, column: 58, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "accessToken", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "@ACCESS_TOKEN@", span: Span { start: Position { line: 10, column: 20, }, end: Position { line: 10, column: 34, }, }, }, ), ], span: Span { start: Position { line: 10, column: 19, }, end: Position { line: 10, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "homeserverUrl", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 18, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 12, column: 10, }, end: Position { line: 12, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 12, column: 14, }, end: Position { line: 12, column: 25, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 12, column: 26, }, end: Position { line: 12, column: 32, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "http://", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 57, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 13, column: 19, }, end: Position { line: 13, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 34, }, }, }, ), Raw( PartRaw { content: "options", span: Span { start: Position { line: 13, column: 35, }, end: Position { line: 13, column: 42, }, }, }, ), Raw( PartRaw { content: "listenAddress", span: Span { start: Position { line: 13, column: 43, }, end: Position { line: 13, column: 56, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ":", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 58, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 13, column: 60, }, end: Position { line: 13, column: 68, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 13, column: 69, }, end: Position { line: 13, column: 72, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 13, column: 73, }, end: Position { line: 13, column: 84, }, }, }, ), Raw( PartRaw { content: "options", span: Span { start: Position { line: 13, column: 85, }, end: Position { line: 13, column: 92, }, }, }, ), Raw( PartRaw { content: "listenPort", span: Span { start: Position { line: 13, column: 93, }, end: Position { line: 13, column: 103, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 105, }, }, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "homeserverUrl", span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 15, column: 26, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 15, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rawHomeserverUrl", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 17, column: 24, }, end: Position { line: 17, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "homeserverUrl", span: Span { start: Position { line: 17, column: 28, }, end: Position { line: 17, column: 41, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 20, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 20, column: 20, }, end: Position { line: 20, column: 31, }, }, }, ), ], default: None, }, ), ), attributes: [ Raw( PartRaw { content: "username", span: Span { start: Position { line: 20, column: 33, }, end: Position { line: 20, column: 41, }, }, }, ), ], span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 20, column: 42, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "use", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 10, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 22, column: 13, }, end: Position { line: 22, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 22, column: 28, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 22, column: 29, }, end: Position { line: 22, column: 35, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "password", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "@PANTALAIMON_PASSWORD@", span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 41, }, }, }, ), ], span: Span { start: Position { line: 23, column: 18, }, end: Position { line: 23, column: 42, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 19, }, end: Position { line: 24, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 25, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "moduleConfigFile", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 27, column: 22, }, end: Position { line: 27, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 27, column: 27, }, end: Position { line: 27, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "module-config.yaml", span: Span { start: Position { line: 27, column: 38, }, end: Position { line: 27, column: 56, }, }, }, ), ], span: Span { start: Position { line: 27, column: 37, }, end: Position { line: 27, column: 57, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "generators", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toYAML", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 28, column: 23, }, end: Position { line: 28, column: 26, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterAttrs", span: Span { start: Position { line: 28, column: 28, }, end: Position { line: 28, column: 39, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 28, column: 47, }, end: Position { line: 28, column: 48, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 28, column: 52, }, end: Position { line: 28, column: 56, }, }, }, ), }, ), span: Span { start: Position { line: 28, column: 44, }, end: Position { line: 28, column: 56, }, }, }, ), span: Span { start: Position { line: 28, column: 41, }, end: Position { line: 28, column: 56, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "fold", span: Span { start: Position { line: 29, column: 8, }, end: Position { line: 29, column: 12, }, }, }, ), arguments: [ Identifier( Identifier { id: "recursiveUpdate", span: Span { start: Position { line: 29, column: 13, }, end: Position { line: 29, column: 28, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 29, column: 29, }, end: Position { line: 29, column: 32, }, }, }, ), List( List { elements: [ Identifier( Identifier { id: "yamlConfig", span: Span { start: Position { line: 29, column: 35, }, end: Position { line: 29, column: 45, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 29, column: 46, }, end: Position { line: 29, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 29, column: 50, }, end: Position { line: 29, column: 58, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 29, column: 33, }, end: Position { line: 29, column: 60, }, }, }, ), ], }, ), ], }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFiles", span: Span { start: Position { line: 32, column: 3, }, end: Position { line: 32, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 33, column: 8, }, end: Position { line: 33, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 33, column: 13, }, end: Position { line: 33, column: 20, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/share/mjolnir/config/default.yaml", span: Span { start: Position { line: 33, column: 6, }, end: Position { line: 33, column: 55, }, }, }, ), ], span: Span { start: Position { line: 33, column: 5, }, end: Position { line: 33, column: 56, }, }, }, ), Identifier( Identifier { id: "moduleConfigFile", span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 34, column: 21, }, }, }, ), ], span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 35, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "generateConfig", span: Span { start: Position { line: 39, column: 3, }, end: Position { line: 39, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 39, column: 20, }, end: Position { line: 39, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeShellScript", span: Span { start: Position { line: 39, column: 25, }, end: Position { line: 39, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "mjolnir-generate-config", span: Span { start: Position { line: 39, column: 43, }, end: Position { line: 39, column: 66, }, }, }, ), ], span: Span { start: Position { line: 39, column: 42, }, end: Position { line: 39, column: 67, }, }, }, ), LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "yqEvalStr", span: Span { start: Position { line: 41, column: 7, }, end: Position { line: 41, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatImapStringsSep", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 39, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " * ", span: Span { start: Position { line: 41, column: 41, }, end: Position { line: 41, column: 44, }, }, }, ), ], span: Span { start: Position { line: 41, column: 40, }, end: Position { line: 41, column: 45, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "pos", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "select(fileIndex == ", span: Span { start: Position { line: 41, column: 56, }, end: Position { line: 41, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 41, column: 78, }, end: Position { line: 41, column: 86, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "pos", span: Span { start: Position { line: 41, column: 88, }, end: Position { line: 41, column: 91, }, }, }, ), operator: Subtraction, right: Integer( Integer { value: "1", span: Span { start: Position { line: 41, column: 94, }, end: Position { line: 41, column: 95, }, }, }, ), }, ), ], }, ), }, ), Raw( PartRaw { content: ")", span: Span { start: Position { line: 41, column: 56, }, end: Position { line: 41, column: 98, }, }, }, ), ], span: Span { start: Position { line: 41, column: 55, }, end: Position { line: 41, column: 99, }, }, }, ), span: Span { start: Position { line: 41, column: 52, }, end: Position { line: 41, column: 99, }, }, }, ), span: Span { start: Position { line: 41, column: 47, }, end: Position { line: 41, column: 99, }, }, }, ), Identifier( Identifier { id: "configFiles", span: Span { start: Position { line: 41, column: 101, }, end: Position { line: 41, column: 112, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "yqEvalArgs", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 42, column: 20, }, end: Position { line: 42, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 42, column: 38, }, end: Position { line: 42, column: 39, }, }, }, ), ], span: Span { start: Position { line: 42, column: 37, }, end: Position { line: 42, column: 40, }, }, }, ), Identifier( Identifier { id: "configFiles", span: Span { start: Position { line: 42, column: 41, }, end: Position { line: 42, column: 52, }, }, }, ), ], }, ), }, ), ], target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "set -euo pipefail\n\numask 077\n\n# mjolnir will try to load a config from \"./config/default.yaml\" in the working directory\n# -> let's place the generated config there\nmkdir -p ", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 51, column: 16, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 30, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/config\n\n# merge all config files into one, overriding settings of the previous one with the next config\n# e.g. \"eval-all 'select(fileIndex == 0) * select(fileIndex == 1)' filea.yaml fileb.yaml\" will merge filea.yaml with fileb.yaml\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "yq-go", span: Span { start: Position { line: 55, column: 14, }, end: Position { line: 55, column: 19, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/yq eval-all -P ", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 40, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 41, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "yqEvalStr", span: Span { start: Position { line: 55, column: 43, }, end: Position { line: 55, column: 52, }, }, }, ), }, ), Raw( PartRaw { content: "' ", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "yqEvalArgs", span: Span { start: Position { line: 55, column: 57, }, end: Position { line: 55, column: 67, }, }, }, ), }, ), Raw( PartRaw { content: " > ", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 71, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 55, column: 73, }, end: Position { line: 55, column: 76, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 55, column: 77, }, end: Position { line: 55, column: 85, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/config/default.yaml\n\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 57, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 57, column: 25, }, end: Position { line: 57, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "accessTokenFile", span: Span { start: Position { line: 57, column: 29, }, end: Position { line: 57, column: 44, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 57, column: 48, }, end: Position { line: 57, column: 52, }, }, }, ), }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 58, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 58, column: 11, }, end: Position { line: 58, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "replace-secret", span: Span { start: Position { line: 58, column: 16, }, end: Position { line: 58, column: 30, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/replace-secret '@ACCESS_TOKEN@' ", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 58, column: 68, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 58, column: 69, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 58, column: 71, }, end: Position { line: 58, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "accessTokenFile", span: Span { start: Position { line: 58, column: 75, }, end: Position { line: 58, column: 90, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "' ", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 58, column: 93, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 58, column: 95, }, end: Position { line: 58, column: 98, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 58, column: 99, }, end: Position { line: 58, column: 107, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/config/default.yaml\n", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 7, }, }, }, ), ], span: Span { start: Position { line: 57, column: 54, }, end: Position { line: 59, column: 9, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 60, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 60, column: 9, }, end: Position { line: 60, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 60, column: 25, }, end: Position { line: 60, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 60, column: 29, }, end: Position { line: 60, column: 40, }, }, }, ), Raw( PartRaw { content: "passwordFile", span: Span { start: Position { line: 60, column: 41, }, end: Position { line: 60, column: 53, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 60, column: 57, }, end: Position { line: 60, column: 61, }, }, }, ), }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 61, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 61, column: 11, }, end: Position { line: 61, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "replace-secret", span: Span { start: Position { line: 61, column: 16, }, end: Position { line: 61, column: 30, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/replace-secret '@PANTALAIMON_PASSWORD@' ", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 61, column: 76, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 61, column: 77, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 61, column: 79, }, end: Position { line: 61, column: 82, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 61, column: 83, }, end: Position { line: 61, column: 94, }, }, }, ), Raw( PartRaw { content: "passwordFile", span: Span { start: Position { line: 61, column: 95, }, end: Position { line: 61, column: 107, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "' ", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 61, column: 110, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 61, column: 112, }, end: Position { line: 61, column: 115, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 61, column: 116, }, end: Position { line: 61, column: 124, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/config/default.yaml\n", span: Span { start: Position { line: 61, column: 1, }, end: Position { line: 62, column: 7, }, }, }, ), ], span: Span { start: Position { line: 60, column: 63, }, end: Position { line: 62, column: 9, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 63, column: 5, }, }, }, ), ], span: Span { start: Position { line: 44, column: 5, }, end: Position { line: 63, column: 7, }, }, }, ), span: Span { start: Position { line: 40, column: 5, }, end: Position { line: 63, column: 7, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 67, column: 3, }, end: Position { line: 67, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 67, column: 11, }, end: Position { line: 67, column: 19, }, }, }, ), Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 67, column: 20, }, end: Position { line: 67, column: 27, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 68, column: 5, }, end: Position { line: 68, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 68, column: 14, }, end: Position { line: 68, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 68, column: 30, }, end: Position { line: 68, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 68, column: 34, }, end: Position { line: 68, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Mjolnir, a moderation tool for Matrix", span: Span { start: Position { line: 68, column: 41, }, end: Position { line: 68, column: 78, }, }, }, ), ], span: Span { start: Position { line: 68, column: 40, }, end: Position { line: 68, column: 79, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "homeserverUrl", span: Span { start: Position { line: 70, column: 5, }, end: Position { line: 70, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 70, column: 21, }, end: Position { line: 70, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 71, column: 7, }, end: Position { line: 71, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 71, column: 14, }, end: Position { line: 71, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 71, column: 20, }, end: Position { line: 71, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 72, column: 7, }, end: Position { line: 72, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://matrix.org", span: Span { start: Position { line: 72, column: 18, }, end: Position { line: 72, column: 36, }, }, }, ), ], span: Span { start: Position { line: 72, column: 17, }, end: Position { line: 72, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 73, column: 7, }, end: Position { line: 73, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 73, column: 21, }, end: Position { line: 73, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 73, column: 25, }, end: Position { line: 73, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Where the homeserver is located (client-server URL).\n\nIf `pantalaimon.enable` is `true`, this option will become the homeserver to which `pantalaimon` connects.\nThe listen address of `pantalaimon` will then become the `homeserverUrl` of `mjolnir`.\n", span: Span { start: Position { line: 74, column: 1, }, end: Position { line: 78, column: 7, }, }, }, ), ], span: Span { start: Position { line: 73, column: 31, }, end: Position { line: 78, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 70, column: 30, }, end: Position { line: 79, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "accessTokenFile", span: Span { start: Position { line: 81, column: 5, }, end: Position { line: 81, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 81, column: 23, }, end: Position { line: 81, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 82, column: 7, }, end: Position { line: 82, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 82, column: 19, }, end: Position { line: 82, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 82, column: 26, }, end: Position { line: 82, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 82, column: 33, }, end: Position { line: 82, column: 37, }, }, }, ), ], }, ), span: Span { start: Position { line: 82, column: 14, }, end: Position { line: 82, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 83, column: 7, }, end: Position { line: 83, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 83, column: 17, }, end: Position { line: 83, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 84, column: 7, }, end: Position { line: 84, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 84, column: 21, }, end: Position { line: 84, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 84, column: 25, }, end: Position { line: 84, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "File containing the matrix access token for the `mjolnir` user.\n", span: Span { start: Position { line: 85, column: 1, }, end: Position { line: 86, column: 7, }, }, }, ), ], span: Span { start: Position { line: 84, column: 31, }, end: Position { line: 86, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 81, column: 32, }, end: Position { line: 87, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 89, column: 5, }, end: Position { line: 89, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 89, column: 19, }, end: Position { line: 89, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 90, column: 7, }, end: Position { line: 90, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 90, column: 21, }, end: Position { line: 90, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 90, column: 25, }, end: Position { line: 90, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "`pantalaimon` options (enables E2E Encryption support).\n\nThis will create a `pantalaimon` instance with the name \"mjolnir\".\n", span: Span { start: Position { line: 91, column: 1, }, end: Position { line: 94, column: 7, }, }, }, ), ], span: Span { start: Position { line: 90, column: 31, }, end: Position { line: 94, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 95, column: 7, }, end: Position { line: 95, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 95, column: 17, }, end: Position { line: 95, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 96, column: 7, }, end: Position { line: 96, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 96, column: 14, }, end: Position { line: 96, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 96, column: 20, }, end: Position { line: 96, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 97, column: 9, }, end: Position { line: 97, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 98, column: 11, }, end: Position { line: 98, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 98, column: 20, }, end: Position { line: 98, column: 34, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 98, column: 36, }, end: Position { line: 98, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 98, column: 40, }, end: Position { line: 98, column: 45, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If true, accessToken is ignored and the username/password below will be\nused instead. The access token of the bot will be stored in the dataPath.\n", span: Span { start: Position { line: 99, column: 1, }, end: Position { line: 101, column: 11, }, }, }, ), ], span: Span { start: Position { line: 98, column: 46, }, end: Position { line: 101, column: 13, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "username", span: Span { start: Position { line: 103, column: 11, }, end: Position { line: 103, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 103, column: 22, }, end: Position { line: 103, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 104, column: 13, }, end: Position { line: 104, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 104, column: 20, }, end: Position { line: 104, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 104, column: 26, }, end: Position { line: 104, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 105, column: 13, }, end: Position { line: 105, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 105, column: 27, }, end: Position { line: 105, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 105, column: 31, }, end: Position { line: 105, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "The username to login with.", span: Span { start: Position { line: 105, column: 38, }, end: Position { line: 105, column: 65, }, }, }, ), ], span: Span { start: Position { line: 105, column: 37, }, end: Position { line: 105, column: 66, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 103, column: 31, }, end: Position { line: 106, column: 12, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "passwordFile", span: Span { start: Position { line: 108, column: 11, }, end: Position { line: 108, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 108, column: 26, }, end: Position { line: 108, column: 34, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 109, column: 13, }, end: Position { line: 109, column: 17, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 109, column: 25, }, end: Position { line: 109, column: 30, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 109, column: 32, }, end: Position { line: 109, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 109, column: 39, }, end: Position { line: 109, column: 43, }, }, }, ), ], }, ), span: Span { start: Position { line: 109, column: 20, }, end: Position { line: 109, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 110, column: 13, }, end: Position { line: 110, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 110, column: 23, }, end: Position { line: 110, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 111, column: 13, }, end: Position { line: 111, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 111, column: 27, }, end: Position { line: 111, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 111, column: 31, }, end: Position { line: 111, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "File containing the matrix password for the `mjolnir` user.\n", span: Span { start: Position { line: 112, column: 1, }, end: Position { line: 113, column: 13, }, }, }, ), ], span: Span { start: Position { line: 111, column: 37, }, end: Position { line: 113, column: 15, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 108, column: 35, }, end: Position { line: 114, column: 12, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 116, column: 11, }, end: Position { line: 116, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 116, column: 21, }, end: Position { line: 116, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 117, column: 13, }, end: Position { line: 117, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 117, column: 20, }, end: Position { line: 117, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 117, column: 26, }, end: Position { line: 117, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 117, column: 37, }, end: Position { line: 117, column: 43, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./pantalaimon-options.nix", span: Span { start: Position { line: 117, column: 44, }, end: Position { line: 117, column: 69, }, }, }, ), ], span: Span { start: Position { line: 117, column: 44, }, end: Position { line: 117, column: 69, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 118, column: 13, }, end: Position { line: 118, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 118, column: 23, }, end: Position { line: 118, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 119, column: 13, }, end: Position { line: 119, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 119, column: 27, }, end: Position { line: 119, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 119, column: 31, }, end: Position { line: 119, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "passthrough additional options to the `pantalaimon` service.\n", span: Span { start: Position { line: 120, column: 1, }, end: Position { line: 121, column: 13, }, }, }, ), ], span: Span { start: Position { line: 119, column: 37, }, end: Position { line: 121, column: 15, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 116, column: 30, }, end: Position { line: 122, column: 12, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 97, column: 19, }, end: Position { line: 123, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 96, column: 30, }, end: Position { line: 124, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 89, column: 28, }, end: Position { line: 125, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 127, column: 5, }, end: Position { line: 127, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 127, column: 16, }, end: Position { line: 127, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 128, column: 7, }, end: Position { line: 128, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 128, column: 14, }, end: Position { line: 128, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 128, column: 20, }, end: Position { line: 128, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 129, column: 7, }, end: Position { line: 129, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/mjolnir", span: Span { start: Position { line: 129, column: 18, }, end: Position { line: 129, column: 34, }, }, }, ), ], span: Span { start: Position { line: 129, column: 17, }, end: Position { line: 129, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 130, column: 7, }, end: Position { line: 130, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 130, column: 21, }, end: Position { line: 130, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 130, column: 25, }, end: Position { line: 130, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The directory the bot should store various bits of information in.\n", span: Span { start: Position { line: 131, column: 1, }, end: Position { line: 132, column: 7, }, }, }, ), ], span: Span { start: Position { line: 130, column: 31, }, end: Position { line: 132, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 127, column: 25, }, end: Position { line: 133, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "managementRoom", span: Span { start: Position { line: 135, column: 5, }, end: Position { line: 135, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 135, column: 22, }, end: Position { line: 135, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 136, column: 7, }, end: Position { line: 136, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 136, column: 14, }, end: Position { line: 136, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 136, column: 20, }, end: Position { line: 136, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 137, column: 7, }, end: Position { line: 137, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "#moderators:example.org", span: Span { start: Position { line: 137, column: 18, }, end: Position { line: 137, column: 41, }, }, }, ), ], span: Span { start: Position { line: 137, column: 17, }, end: Position { line: 137, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 138, column: 7, }, end: Position { line: 138, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 138, column: 21, }, end: Position { line: 138, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 138, column: 25, }, end: Position { line: 138, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The room ID where people can use the bot. The bot has no access controls, so\nanyone in this room can use the bot - secure your room!\nThis should be a room alias or room ID - not a matrix.to URL.\nNote: `mjolnir` is fairly verbose - expect a lot of messages from it.\n", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 143, column: 7, }, }, }, ), ], span: Span { start: Position { line: 138, column: 31, }, end: Position { line: 143, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 135, column: 31, }, end: Position { line: 144, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "protectedRooms", span: Span { start: Position { line: 146, column: 5, }, end: Position { line: 146, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 146, column: 22, }, end: Position { line: 146, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 147, column: 7, }, end: Position { line: 147, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 147, column: 14, }, end: Position { line: 147, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 147, column: 20, }, end: Position { line: 147, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 147, column: 27, }, end: Position { line: 147, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 147, column: 33, }, end: Position { line: 147, column: 36, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 148, column: 7, }, end: Position { line: 148, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 148, column: 17, }, end: Position { line: 148, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 149, column: 7, }, end: Position { line: 149, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 149, column: 17, }, end: Position { line: 149, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[\n \"https://matrix.to/#/#yourroom:example.org\"\n \"https://matrix.to/#/#anotherroom:example.org\"\n]\n", span: Span { start: Position { line: 150, column: 1, }, end: Position { line: 154, column: 7, }, }, }, ), ], span: Span { start: Position { line: 149, column: 35, }, end: Position { line: 154, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 155, column: 7, }, end: Position { line: 155, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 155, column: 21, }, end: Position { line: 155, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 155, column: 25, }, end: Position { line: 155, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A list of rooms to protect (matrix.to URLs).\n", span: Span { start: Position { line: 156, column: 1, }, end: Position { line: 157, column: 7, }, }, }, ), ], span: Span { start: Position { line: 155, column: 31, }, end: Position { line: 157, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 146, column: 31, }, end: Position { line: 158, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 160, column: 5, }, end: Position { line: 160, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 160, column: 16, }, end: Position { line: 160, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 161, column: 7, }, end: Position { line: 161, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 161, column: 17, }, end: Position { line: 161, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 162, column: 7, }, end: Position { line: 162, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 162, column: 15, }, end: Position { line: 162, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 162, column: 20, }, end: Position { line: 162, column: 27, }, }, }, ), Raw( PartRaw { content: "yaml", span: Span { start: Position { line: 162, column: 28, }, end: Position { line: 162, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 162, column: 33, }, end: Position { line: 162, column: 36, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 162, column: 38, }, end: Position { line: 162, column: 42, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 163, column: 7, }, end: Position { line: 163, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 163, column: 17, }, end: Position { line: 163, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n autojoinOnlyIfManager = true;\n automaticallyRedactForReasons = [ \"spam\" \"advertising\" ];\n}\n", span: Span { start: Position { line: 164, column: 1, }, end: Position { line: 168, column: 7, }, }, }, ), ], span: Span { start: Position { line: 163, column: 35, }, end: Position { line: 168, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 169, column: 7, }, end: Position { line: 169, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 169, column: 21, }, end: Position { line: 169, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 169, column: 25, }, end: Position { line: 169, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Additional settings (see [mjolnir default config](https://github.com/matrix-org/mjolnir/blob/main/config/default.yaml) for available settings). These settings will override settings made by the module config.\n", span: Span { start: Position { line: 170, column: 1, }, end: Position { line: 171, column: 7, }, }, }, ), ], span: Span { start: Position { line: 169, column: 31, }, end: Position { line: 171, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 160, column: 25, }, end: Position { line: 172, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 67, column: 30, }, end: Position { line: 173, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 175, column: 3, }, end: Position { line: 175, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 175, column: 12, }, end: Position { line: 175, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 175, column: 17, }, end: Position { line: 175, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 175, column: 24, }, end: Position { line: 175, column: 32, }, }, }, ), Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 175, column: 33, }, end: Position { line: 175, column: 40, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 175, column: 41, }, end: Position { line: 175, column: 47, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 176, column: 5, }, end: Position { line: 176, column: 15, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 178, column: 9, }, end: Position { line: 178, column: 18, }, }, }, ), ], to: UnaryOperation( UnaryOperation { operator: Not, operand: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 178, column: 23, }, end: Position { line: 178, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 178, column: 27, }, end: Position { line: 178, column: 38, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 178, column: 39, }, end: Position { line: 178, column: 45, }, }, }, ), ], default: None, }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 178, column: 49, }, end: Position { line: 178, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 178, column: 53, }, end: Position { line: 178, column: 64, }, }, }, ), Raw( PartRaw { content: "passwordFile", span: Span { start: Position { line: 178, column: 65, }, end: Position { line: 178, column: 77, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 178, column: 81, }, end: Position { line: 178, column: 85, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 178, column: 21, }, end: Position { line: 178, column: 86, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 179, column: 9, }, end: Position { line: 179, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Specify pantalaimon.passwordFile", span: Span { start: Position { line: 179, column: 20, }, end: Position { line: 179, column: 52, }, }, }, ), ], span: Span { start: Position { line: 179, column: 19, }, end: Position { line: 179, column: 53, }, }, }, ), }, ), ], span: Span { start: Position { line: 177, column: 7, }, end: Position { line: 180, column: 8, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 182, column: 9, }, end: Position { line: 182, column: 18, }, }, }, ), ], to: UnaryOperation( UnaryOperation { operator: Not, operand: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 182, column: 23, }, end: Position { line: 182, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 182, column: 27, }, end: Position { line: 182, column: 38, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 182, column: 39, }, end: Position { line: 182, column: 45, }, }, }, ), ], default: None, }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 182, column: 49, }, end: Position { line: 182, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "accessTokenFile", span: Span { start: Position { line: 182, column: 53, }, end: Position { line: 182, column: 68, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 182, column: 72, }, end: Position { line: 182, column: 76, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 182, column: 21, }, end: Position { line: 182, column: 77, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 183, column: 9, }, end: Position { line: 183, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Do not specify accessTokenFile when using pantalaimon", span: Span { start: Position { line: 183, column: 20, }, end: Position { line: 183, column: 73, }, }, }, ), ], span: Span { start: Position { line: 183, column: 19, }, end: Position { line: 183, column: 74, }, }, }, ), }, ), ], span: Span { start: Position { line: 181, column: 7, }, end: Position { line: 184, column: 8, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 186, column: 9, }, end: Position { line: 186, column: 18, }, }, }, ), ], to: UnaryOperation( UnaryOperation { operator: Not, operand: BinaryOperation( BinaryOperation { left: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 186, column: 24, }, end: Position { line: 186, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 186, column: 28, }, end: Position { line: 186, column: 39, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 186, column: 40, }, end: Position { line: 186, column: 46, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 186, column: 23, }, end: Position { line: 186, column: 46, }, }, }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 186, column: 50, }, end: Position { line: 186, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "accessTokenFile", span: Span { start: Position { line: 186, column: 54, }, end: Position { line: 186, column: 69, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 186, column: 73, }, end: Position { line: 186, column: 77, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 186, column: 21, }, end: Position { line: 186, column: 78, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 187, column: 9, }, end: Position { line: 187, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Specify accessTokenFile when not using pantalaimon", span: Span { start: Position { line: 187, column: 20, }, end: Position { line: 187, column: 70, }, }, }, ), ], span: Span { start: Position { line: 187, column: 19, }, end: Position { line: 187, column: 71, }, }, }, ), }, ), ], span: Span { start: Position { line: 185, column: 7, }, end: Position { line: 188, column: 8, }, }, }, ), ], span: Span { start: Position { line: 176, column: 18, }, end: Position { line: 189, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 191, column: 5, }, end: Position { line: 191, column: 13, }, }, }, ), Raw( PartRaw { content: "pantalaimon-headless", span: Span { start: Position { line: 191, column: 14, }, end: Position { line: 191, column: 34, }, }, }, ), Raw( PartRaw { content: "instances", span: Span { start: Position { line: 191, column: 35, }, end: Position { line: 191, column: 44, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 191, column: 46, }, end: Position { line: 191, column: 53, }, }, }, ), ], span: Span { start: Position { line: 191, column: 45, }, end: Position { line: 191, column: 54, }, }, }, ), }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 191, column: 57, }, end: Position { line: 191, column: 61, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 191, column: 62, }, end: Position { line: 191, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 191, column: 66, }, end: Position { line: 191, column: 77, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 191, column: 78, }, end: Position { line: 191, column: 84, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "homeserver", span: Span { start: Position { line: 193, column: 9, }, end: Position { line: 193, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 193, column: 22, }, end: Position { line: 193, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "homeserverUrl", span: Span { start: Position { line: 193, column: 26, }, end: Position { line: 193, column: 39, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 192, column: 7, }, end: Position { line: 194, column: 8, }, }, }, ), ], }, ), operator: Update, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 194, column: 12, }, end: Position { line: 194, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 194, column: 16, }, end: Position { line: 194, column: 27, }, }, }, ), Raw( PartRaw { content: "options", span: Span { start: Position { line: 194, column: 28, }, end: Position { line: 194, column: 35, }, }, }, ), ], default: None, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 196, column: 5, }, end: Position { line: 196, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 196, column: 13, }, end: Position { line: 196, column: 21, }, }, }, ), Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 196, column: 22, }, end: Position { line: 196, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 197, column: 7, }, end: Position { line: 197, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mjolnir - a moderation tool for Matrix", span: Span { start: Position { line: 197, column: 22, }, end: Position { line: 197, column: 60, }, }, }, ), ], span: Span { start: Position { line: 197, column: 21, }, end: Position { line: 197, column: 61, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wants", span: Span { start: Position { line: 198, column: 7, }, end: Position { line: 198, column: 12, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 198, column: 18, }, end: Position { line: 198, column: 39, }, }, }, ), ], span: Span { start: Position { line: 198, column: 17, }, end: Position { line: 198, column: 40, }, }, }, ), ], span: Span { start: Position { line: 198, column: 15, }, end: Position { line: 198, column: 42, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionals", span: Span { start: Position { line: 198, column: 46, }, end: Position { line: 198, column: 55, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 198, column: 57, }, end: Position { line: 198, column: 60, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 198, column: 61, }, end: Position { line: 198, column: 72, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 198, column: 73, }, end: Position { line: 198, column: 79, }, }, }, ), ], default: None, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "pantalaimon-mjolnir.service", span: Span { start: Position { line: 198, column: 84, }, end: Position { line: 198, column: 111, }, }, }, ), ], span: Span { start: Position { line: 198, column: 83, }, end: Position { line: 198, column: 112, }, }, }, ), ], span: Span { start: Position { line: 198, column: 81, }, end: Position { line: 198, column: 114, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 199, column: 7, }, end: Position { line: 199, column: 12, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 199, column: 18, }, end: Position { line: 199, column: 39, }, }, }, ), ], span: Span { start: Position { line: 199, column: 17, }, end: Position { line: 199, column: 40, }, }, }, ), ], span: Span { start: Position { line: 199, column: 15, }, end: Position { line: 199, column: 42, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionals", span: Span { start: Position { line: 199, column: 46, }, end: Position { line: 199, column: 55, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 199, column: 57, }, end: Position { line: 199, column: 60, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pantalaimon", span: Span { start: Position { line: 199, column: 61, }, end: Position { line: 199, column: 72, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 199, column: 73, }, end: Position { line: 199, column: 79, }, }, }, ), ], default: None, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "pantalaimon-mjolnir.service", span: Span { start: Position { line: 199, column: 84, }, end: Position { line: 199, column: 111, }, }, }, ), ], span: Span { start: Position { line: 199, column: 83, }, end: Position { line: 199, column: 112, }, }, }, ), ], span: Span { start: Position { line: 199, column: 81, }, end: Position { line: 199, column: 114, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 200, column: 7, }, end: Position { line: 200, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 200, column: 21, }, end: Position { line: 200, column: 38, }, }, }, ), ], span: Span { start: Position { line: 200, column: 20, }, end: Position { line: 200, column: 39, }, }, }, ), ], span: Span { start: Position { line: 200, column: 18, }, end: Position { line: 200, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 202, column: 7, }, end: Position { line: 202, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 203, column: 9, }, end: Position { line: 203, column: 18, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 203, column: 25, }, end: Position { line: 203, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 203, column: 30, }, end: Position { line: 203, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mjolnir", span: Span { start: Position { line: 203, column: 23, }, end: Position { line: 203, column: 50, }, }, }, ), ], span: Span { start: Position { line: 203, column: 21, }, end: Position { line: 203, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStartPre", span: Span { start: Position { line: 204, column: 9, }, end: Position { line: 204, column: 21, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "generateConfig", span: Span { start: Position { line: 204, column: 26, }, end: Position { line: 204, column: 40, }, }, }, ), ], span: Span { start: Position { line: 204, column: 24, }, end: Position { line: 204, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WorkingDirectory", span: Span { start: Position { line: 205, column: 9, }, end: Position { line: 205, column: 25, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 205, column: 28, }, end: Position { line: 205, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataPath", span: Span { start: Position { line: 205, column: 32, }, end: Position { line: 205, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectory", span: Span { start: Position { line: 206, column: 9, }, end: Position { line: 206, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 206, column: 27, }, end: Position { line: 206, column: 34, }, }, }, ), ], span: Span { start: Position { line: 206, column: 26, }, end: Position { line: 206, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectoryMode", span: Span { start: Position { line: 207, column: 9, }, end: Position { line: 207, column: 27, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0700", span: Span { start: Position { line: 207, column: 31, }, end: Position { line: 207, column: 35, }, }, }, ), ], span: Span { start: Position { line: 207, column: 30, }, end: Position { line: 207, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ProtectSystem", span: Span { start: Position { line: 208, column: 9, }, end: Position { line: 208, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "strict", span: Span { start: Position { line: 208, column: 26, }, end: Position { line: 208, column: 32, }, }, }, ), ], span: Span { start: Position { line: 208, column: 25, }, end: Position { line: 208, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ProtectHome", span: Span { start: Position { line: 209, column: 9, }, end: Position { line: 209, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 209, column: 23, }, end: Position { line: 209, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PrivateTmp", span: Span { start: Position { line: 210, column: 9, }, end: Position { line: 210, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 210, column: 22, }, end: Position { line: 210, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NoNewPrivileges", span: Span { start: Position { line: 211, column: 9, }, end: Position { line: 211, column: 24, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 211, column: 27, }, end: Position { line: 211, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PrivateDevices", span: Span { start: Position { line: 212, column: 9, }, end: Position { line: 212, column: 23, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 212, column: 26, }, end: Position { line: 212, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 213, column: 9, }, end: Position { line: 213, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 213, column: 17, }, end: Position { line: 213, column: 24, }, }, }, ), ], span: Span { start: Position { line: 213, column: 16, }, end: Position { line: 213, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 214, column: 9, }, end: Position { line: 214, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 214, column: 20, }, end: Position { line: 214, column: 30, }, }, }, ), ], span: Span { start: Position { line: 214, column: 19, }, end: Position { line: 214, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 202, column: 23, }, end: Position { line: 226, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 196, column: 32, }, end: Position { line: 227, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 229, column: 5, }, end: Position { line: 229, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 230, column: 7, }, end: Position { line: 230, column: 12, }, }, }, ), Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 230, column: 13, }, end: Position { line: 230, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 231, column: 9, }, end: Position { line: 231, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 231, column: 18, }, end: Position { line: 231, column: 25, }, }, }, ), ], span: Span { start: Position { line: 231, column: 17, }, end: Position { line: 231, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 232, column: 9, }, end: Position { line: 232, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 232, column: 24, }, end: Position { line: 232, column: 28, }, }, }, ), }, ), ], span: Span { start: Position { line: 230, column: 23, }, end: Position { line: 233, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "groups", span: Span { start: Position { line: 234, column: 7, }, end: Position { line: 234, column: 13, }, }, }, ), Raw( PartRaw { content: "mjolnir", span: Span { start: Position { line: 234, column: 14, }, end: Position { line: 234, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 234, column: 24, }, end: Position { line: 234, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 229, column: 13, }, end: Position { line: 235, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 175, column: 48, }, end: Position { line: 236, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 238, column: 3, }, end: Position { line: 238, column: 7, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "doc", span: Span { start: Position { line: 239, column: 5, }, end: Position { line: 239, column: 8, }, }, }, ), ], to: Path( Path { parts: [ Raw( PartRaw { content: "./mjolnir.xml", span: Span { start: Position { line: 239, column: 11, }, end: Position { line: 239, column: 24, }, }, }, ), ], span: Span { start: Position { line: 239, column: 11, }, end: Position { line: 239, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 240, column: 5, }, end: Position { line: 240, column: 16, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 240, column: 24, }, end: Position { line: 240, column: 35, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "jojosch", span: Span { start: Position { line: 240, column: 39, }, end: Position { line: 240, column: 46, }, }, }, ), ], span: Span { start: Position { line: 240, column: 37, }, end: Position { line: 240, column: 48, }, }, }, ), span: Span { start: Position { line: 240, column: 19, }, end: Position { line: 240, column: 48, }, }, }, ), }, ), ], span: Span { start: Position { line: 238, column: 10, }, end: Position { line: 241, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 66, column: 1, }, end: Position { line: 242, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 242, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 242, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 242, column: 2, }, }, }, )