Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 4, column: 12, }, end: Position { line: 4, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "escapeShellArgs", span: Span { start: Position { line: 4, column: 17, }, end: Position { line: 4, column: 32, }, }, }, ), Raw( PartRaw { content: "mkEnableOption", span: Span { start: Position { line: 4, column: 33, }, end: Position { line: 4, column: 47, }, }, }, ), Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 4, column: 48, }, end: Position { line: 4, column: 52, }, }, }, ), Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 4, column: 53, }, end: Position { line: 4, column: 61, }, }, }, ), Raw( PartRaw { content: "types", span: Span { start: Position { line: 4, column: 62, }, end: Position { line: 4, column: 67, }, }, }, ), ], span: Span { start: Position { line: 3, column: 4, }, end: Position { line: 4, column: 68, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), Raw( PartRaw { content: "loki", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "prettyJSON", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "conf", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 9, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 9, column: 10, }, end: Position { line: 9, column: 20, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "loki-config.json", span: Span { start: Position { line: 9, column: 22, }, end: Position { line: 9, column: 38, }, }, }, ), ], span: Span { start: Position { line: 9, column: 21, }, end: Position { line: 9, column: 39, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 9, column: 40, }, end: Position { line: 9, column: 43, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "echo ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 12, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 10, column: 15, }, end: Position { line: 10, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toJSON", span: Span { start: Position { line: 10, column: 24, }, end: Position { line: 10, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "conf", span: Span { start: Position { line: 10, column: 31, }, end: Position { line: 10, column: 35, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "' | ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 40, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 10, column: 42, }, end: Position { line: 10, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jq", span: Span { start: Position { line: 10, column: 47, }, end: Position { line: 10, column: 49, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/jq 'del(._module)' > $out\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 11, column: 5, }, }, }, ), ], span: Span { start: Position { line: 9, column: 44, }, end: Position { line: 11, column: 7, }, }, }, ), ], }, ), span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 11, column: 7, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 14, column: 11, }, end: Position { line: 14, column: 19, }, }, }, ), Raw( PartRaw { content: "loki", span: Span { start: Position { line: 14, column: 20, }, end: Position { line: 14, column: 24, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 15, column: 14, }, end: Position { line: 15, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 15, column: 30, }, end: Position { line: 15, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 15, column: 34, }, end: Position { line: 15, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "loki", span: Span { start: Position { line: 15, column: 41, }, end: Position { line: 15, column: 45, }, }, }, ), ], span: Span { start: Position { line: 15, column: 40, }, end: Position { line: 15, column: 46, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 17, column: 12, }, end: Position { line: 17, column: 20, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 18, column: 14, }, end: Position { line: 18, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 18, column: 20, }, end: Position { line: 18, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "loki", span: Span { start: Position { line: 19, column: 18, }, end: Position { line: 19, column: 22, }, }, }, ), ], span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 20, column: 21, }, end: Position { line: 20, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 20, column: 25, }, end: Position { line: 20, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "User under which the Loki service runs.\n", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 22, column: 7, }, }, }, ), ], span: Span { start: Position { line: 20, column: 31, }, end: Position { line: 22, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 21, }, end: Position { line: 23, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 25, column: 13, }, end: Position { line: 25, column: 21, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 26, column: 14, }, end: Position { line: 26, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 26, column: 20, }, end: Position { line: 26, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "loki", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 22, }, }, }, ), ], span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 28, column: 25, }, end: Position { line: 28, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Group under which the Loki service runs.\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 30, column: 7, }, }, }, ), ], span: Span { start: Position { line: 28, column: 31, }, end: Position { line: 30, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 25, column: 22, }, end: Position { line: 31, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dataDir", span: Span { start: Position { line: 33, column: 5, }, end: Position { line: 33, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 33, column: 15, }, end: Position { line: 33, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 34, column: 14, }, end: Position { line: 34, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 34, column: 20, }, end: Position { line: 34, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/loki", span: Span { start: Position { line: 35, column: 18, }, end: Position { line: 35, column: 31, }, }, }, ), ], span: Span { start: Position { line: 35, column: 17, }, end: Position { line: 35, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 36, column: 21, }, end: Position { line: 36, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 36, column: 25, }, end: Position { line: 36, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specify the directory for Loki.\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 7, }, }, }, ), ], span: Span { start: Position { line: 36, column: 31, }, end: Position { line: 38, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 33, column: 24, }, end: Position { line: 39, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 41, column: 5, }, end: Position { line: 41, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 41, column: 21, }, end: Position { line: 41, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 42, column: 15, }, end: Position { line: 42, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 42, column: 20, }, end: Position { line: 42, column: 27, }, }, }, ), Raw( PartRaw { content: "json", span: Span { start: Position { line: 42, column: 28, }, end: Position { line: 42, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 42, column: 33, }, end: Position { line: 42, column: 35, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 42, column: 37, }, end: Position { line: 42, column: 41, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 43, column: 17, }, end: Position { line: 43, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 44, column: 21, }, end: Position { line: 44, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 44, column: 25, }, end: Position { line: 44, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specify the configuration for Loki in Nix.\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 46, column: 7, }, }, }, ), ], span: Span { start: Position { line: 44, column: 31, }, end: Position { line: 46, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 41, column: 30, }, end: Position { line: 47, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 49, column: 18, }, end: Position { line: 49, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 50, column: 14, }, end: Position { line: 50, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 50, column: 27, }, end: Position { line: 50, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 50, column: 33, }, end: Position { line: 50, column: 37, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 52, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specify a configuration file that Loki should use.\n", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 54, column: 7, }, }, }, ), ], span: Span { start: Position { line: 52, column: 31, }, end: Position { line: 54, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 49, column: 27, }, end: Position { line: 55, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 57, column: 5, }, end: Position { line: 57, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 57, column: 18, }, end: Position { line: 57, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 58, column: 14, }, end: Position { line: 58, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 58, column: 20, }, end: Position { line: 58, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 58, column: 27, }, end: Position { line: 58, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 58, column: 33, }, end: Position { line: 58, column: 36, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 59, column: 7, }, end: Position { line: 59, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 59, column: 17, }, end: Position { line: 59, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 60, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "--server.http-listen-port=3101", span: Span { start: Position { line: 60, column: 20, }, end: Position { line: 60, column: 50, }, }, }, ), ], span: Span { start: Position { line: 60, column: 19, }, end: Position { line: 60, column: 51, }, }, }, ), ], span: Span { start: Position { line: 60, column: 17, }, end: Position { line: 60, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 61, column: 21, }, end: Position { line: 61, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 61, column: 25, }, end: Position { line: 61, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specify a list of additional command line flags,\nwhich get escaped and are then passed to Loki.\n", span: Span { start: Position { line: 62, column: 1, }, end: Position { line: 64, column: 7, }, }, }, ), ], span: Span { start: Position { line: 61, column: 31, }, end: Position { line: 64, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 57, column: 27, }, end: Position { line: 65, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 14, column: 27, }, end: Position { line: 66, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 68, column: 3, }, end: Position { line: 68, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 68, column: 12, }, end: Position { line: 68, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 68, column: 17, }, end: Position { line: 68, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 68, column: 21, }, end: Position { line: 68, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 69, column: 5, }, end: Position { line: 69, column: 15, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 70, column: 7, }, end: Position { line: 70, column: 16, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 71, column: 10, }, end: Position { line: 71, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 71, column: 14, }, end: Position { line: 71, column: 27, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 71, column: 31, }, end: Position { line: 71, column: 33, }, }, }, ), }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 71, column: 37, }, end: Position { line: 71, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 71, column: 41, }, end: Position { line: 71, column: 51, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 71, column: 55, }, end: Position { line: 71, column: 59, }, }, }, ), }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 72, column: 10, }, end: Position { line: 72, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 72, column: 14, }, end: Position { line: 72, column: 24, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 72, column: 28, }, end: Position { line: 72, column: 32, }, }, }, ), }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 72, column: 36, }, end: Position { line: 72, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 72, column: 40, }, end: Position { line: 72, column: 53, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 72, column: 57, }, end: Position { line: 72, column: 59, }, }, }, ), }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 74, column: 7, }, end: Position { line: 74, column: 14, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Please specify either\n'services.loki.configuration' or\n'services.loki.configFile'.\n", span: Span { start: Position { line: 75, column: 1, }, end: Position { line: 78, column: 7, }, }, }, ), ], span: Span { start: Position { line: 74, column: 18, }, end: Position { line: 78, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 69, column: 19, }, end: Position { line: 79, column: 6, }, }, }, ), ], span: Span { start: Position { line: 69, column: 18, }, end: Position { line: 79, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 81, column: 5, }, end: Position { line: 81, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 81, column: 17, }, end: Position { line: 81, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 81, column: 36, }, end: Position { line: 81, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "grafana-loki", span: Span { start: Position { line: 81, column: 41, }, end: Position { line: 81, column: 53, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 81, column: 34, }, end: Position { line: 81, column: 55, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 83, column: 5, }, end: Position { line: 83, column: 10, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 83, column: 11, }, end: Position { line: 83, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 83, column: 20, }, end: Position { line: 83, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 83, column: 24, }, end: Position { line: 83, column: 29, }, }, }, ), ], default: None, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 83, column: 33, }, end: Position { line: 83, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 84, column: 5, }, end: Position { line: 84, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 84, column: 11, }, end: Position { line: 84, column: 16, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 84, column: 19, }, end: Position { line: 84, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 84, column: 23, }, end: Position { line: 84, column: 27, }, }, }, ), ], default: None, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Loki Service User", span: Span { start: Position { line: 85, column: 22, }, end: Position { line: 85, column: 39, }, }, }, ), ], span: Span { start: Position { line: 85, column: 21, }, end: Position { line: 85, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 86, column: 7, }, end: Position { line: 86, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 86, column: 15, }, end: Position { line: 86, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 86, column: 19, }, end: Position { line: 86, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "home", span: Span { start: Position { line: 87, column: 7, }, end: Position { line: 87, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 87, column: 14, }, end: Position { line: 87, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataDir", span: Span { start: Position { line: 87, column: 18, }, end: Position { line: 87, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "createHome", span: Span { start: Position { line: 88, column: 7, }, end: Position { line: 88, column: 17, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 88, column: 20, }, end: Position { line: 88, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 89, column: 7, }, end: Position { line: 89, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 89, column: 22, }, end: Position { line: 89, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 84, column: 31, }, end: Position { line: 90, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 92, column: 5, }, end: Position { line: 92, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 92, column: 13, }, end: Position { line: 92, column: 21, }, }, }, ), Raw( PartRaw { content: "loki", span: Span { start: Position { line: 92, column: 22, }, end: Position { line: 92, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Loki Service Daemon", span: Span { start: Position { line: 93, column: 22, }, end: Position { line: 93, column: 41, }, }, }, ), ], span: Span { start: Position { line: 93, column: 21, }, end: Position { line: 93, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 94, column: 7, }, end: Position { line: 94, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 94, column: 21, }, end: Position { line: 94, column: 38, }, }, }, ), ], span: Span { start: Position { line: 94, column: 20, }, end: Position { line: 94, column: 39, }, }, }, ), ], span: Span { start: Position { line: 94, column: 18, }, end: Position { line: 94, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 96, column: 7, }, end: Position { line: 96, column: 20, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "conf", span: Span { start: Position { line: 97, column: 9, }, end: Position { line: 97, column: 13, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 97, column: 19, }, end: Position { line: 97, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 97, column: 23, }, end: Position { line: 97, column: 33, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 97, column: 37, }, end: Position { line: 97, column: 41, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "prettyJSON", span: Span { start: Position { line: 98, column: 21, }, end: Position { line: 98, column: 31, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 98, column: 32, }, end: Position { line: 98, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 98, column: 36, }, end: Position { line: 98, column: 49, }, }, }, ), ], default: None, }, ), ], }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 99, column: 21, }, end: Position { line: 99, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 99, column: 25, }, end: Position { line: 99, column: 35, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 97, column: 16, }, end: Position { line: 99, column: 35, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 102, column: 9, }, end: Position { line: 102, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 102, column: 24, }, end: Position { line: 102, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "grafana-loki", span: Span { start: Position { line: 102, column: 29, }, end: Position { line: 102, column: 41, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/loki --config.file=", span: Span { start: Position { line: 102, column: 22, }, end: Position { line: 102, column: 66, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "conf", span: Span { start: Position { line: 102, column: 68, }, end: Position { line: 102, column: 72, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 102, column: 22, }, end: Position { line: 102, column: 74, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArgs", span: Span { start: Position { line: 102, column: 76, }, end: Position { line: 102, column: 91, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 102, column: 92, }, end: Position { line: 102, column: 95, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 102, column: 96, }, end: Position { line: 102, column: 106, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 102, column: 21, }, end: Position { line: 102, column: 108, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 103, column: 9, }, end: Position { line: 103, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 103, column: 16, }, end: Position { line: 103, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 103, column: 20, }, end: Position { line: 103, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 104, column: 9, }, end: Position { line: 104, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 104, column: 20, }, end: Position { line: 104, column: 26, }, }, }, ), ], span: Span { start: Position { line: 104, column: 19, }, end: Position { line: 104, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PrivateTmp", span: Span { start: Position { line: 105, column: 9, }, end: Position { line: 105, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 105, column: 22, }, end: Position { line: 105, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ProtectHome", span: Span { start: Position { line: 106, column: 9, }, end: Position { line: 106, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 106, column: 23, }, end: Position { line: 106, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ProtectSystem", span: Span { start: Position { line: 107, column: 9, }, end: Position { line: 107, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "full", span: Span { start: Position { line: 107, column: 26, }, end: Position { line: 107, column: 30, }, }, }, ), ], span: Span { start: Position { line: 107, column: 25, }, end: Position { line: 107, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DevicePolicy", span: Span { start: Position { line: 108, column: 9, }, end: Position { line: 108, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "closed", span: Span { start: Position { line: 108, column: 25, }, end: Position { line: 108, column: 31, }, }, }, ), ], span: Span { start: Position { line: 108, column: 24, }, end: Position { line: 108, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NoNewPrivileges", span: Span { start: Position { line: 109, column: 9, }, end: Position { line: 109, column: 24, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 109, column: 27, }, end: Position { line: 109, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WorkingDirectory", span: Span { start: Position { line: 110, column: 9, }, end: Position { line: 110, column: 25, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 110, column: 28, }, end: Position { line: 110, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dataDir", span: Span { start: Position { line: 110, column: 32, }, end: Position { line: 110, column: 39, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 101, column: 7, }, end: Position { line: 111, column: 8, }, }, }, ), span: Span { start: Position { line: 96, column: 23, }, end: Position { line: 111, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 92, column: 29, }, end: Position { line: 112, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 68, column: 28, }, end: Position { line: 113, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 4, }, end: Position { line: 114, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 114, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 114, column: 2, }, }, }, )