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: 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: "mackerel-agent", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 39, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settingsFmt", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 7, column: 22, }, end: Position { line: 7, column: 29, }, }, }, ), Raw( PartRaw { content: "toml", span: Span { start: Position { line: 7, column: 30, }, end: Position { line: 7, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 7, column: 35, }, end: Position { line: 7, column: 37, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 9, column: 11, }, end: Position { line: 9, column: 19, }, }, }, ), Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 9, column: 20, }, end: Position { line: 9, column: 34, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 30, }, end: Position { line: 10, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 10, column: 34, }, end: Position { line: 10, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "mackerel.io agent", span: Span { start: Position { line: 10, column: 41, }, end: Position { line: 10, column: 58, }, }, }, ), ], span: Span { start: Position { line: 10, column: 40, }, end: Position { line: 10, column: 59, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "runAsRoot", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 14, column: 17, }, end: Position { line: 14, column: 31, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 33, }, end: Position { line: 14, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 37, }, end: Position { line: 14, column: 42, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Whether to run as root.", span: Span { start: Position { line: 14, column: 44, }, end: Position { line: 14, column: 67, }, }, }, ), ], span: Span { start: Position { line: 14, column: 43, }, end: Position { line: 14, column: 68, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "autoRetirement", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 16, column: 22, }, end: Position { line: 16, column: 36, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 38, }, end: Position { line: 16, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 42, }, end: Position { line: 16, column: 47, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to automatically retire the host upon OS shutdown.\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 18, column: 5, }, }, }, ), ], span: Span { start: Position { line: 16, column: 48, }, end: Position { line: 18, column: 7, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apiKeyFile", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 21, column: 7, }, end: Position { line: 21, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 21, column: 14, }, end: Position { line: 21, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 21, column: 20, }, end: Position { line: 21, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/keys/mackerel-api-key", span: Span { start: Position { line: 22, column: 18, }, end: Position { line: 22, column: 44, }, }, }, ), ], span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 22, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 23, column: 21, }, end: Position { line: 23, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 23, column: 25, }, end: Position { line: 23, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Path to file containing the Mackerel API key. The file should contain a\nsingle line of the following form:\n\n`apikey = \"EXAMPLE_API_KEY\"`\n", span: Span { start: Position { line: 24, column: 1, }, end: Position { line: 28, column: 7, }, }, }, ), ], span: Span { start: Position { line: 23, column: 31, }, end: Position { line: 28, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 20, column: 27, }, end: Position { line: 29, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 31, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 21, }, end: Position { line: 32, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 25, }, end: Position { line: 32, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Options for mackerel-agent.conf.\n\nDocumentation:\n\n", span: Span { start: Position { line: 33, column: 1, }, end: Position { line: 37, column: 7, }, }, }, ), ], span: Span { start: Position { line: 32, column: 31, }, end: Position { line: 37, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 39, column: 17, }, end: Position { line: 39, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "verbose", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "silent", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 42, column: 18, }, end: Position { line: 42, column: 23, }, }, }, ), }, ), ], span: Span { start: Position { line: 40, column: 17, }, end: Position { line: 43, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 45, column: 14, }, end: Position { line: 45, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 45, column: 20, }, end: Position { line: 45, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "freeformType", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settingsFmt", span: Span { start: Position { line: 46, column: 24, }, end: Position { line: 46, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 46, column: 36, }, end: Position { line: 46, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 48, column: 9, }, end: Position { line: 48, column: 16, }, }, }, ), Raw( PartRaw { content: "host_status", span: Span { start: Position { line: 48, column: 17, }, end: Position { line: 48, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "on_start", span: Span { start: Position { line: 49, column: 11, }, end: Position { line: 49, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 50, column: 13, }, end: Position { line: 50, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 50, column: 26, }, end: Position { line: 50, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "working", span: Span { start: Position { line: 50, column: 34, }, end: Position { line: 50, column: 41, }, }, }, ), ], span: Span { start: Position { line: 50, column: 33, }, end: Position { line: 50, column: 42, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "standby", span: Span { start: Position { line: 50, column: 44, }, end: Position { line: 50, column: 51, }, }, }, ), ], span: Span { start: Position { line: 50, column: 43, }, end: Position { line: 50, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "maintenance", span: Span { start: Position { line: 50, column: 54, }, end: Position { line: 50, column: 65, }, }, }, ), ], span: Span { start: Position { line: 50, column: 53, }, end: Position { line: 50, column: 66, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "poweroff", span: Span { start: Position { line: 50, column: 68, }, end: Position { line: 50, column: 76, }, }, }, ), ], span: Span { start: Position { line: 50, column: 67, }, end: Position { line: 50, column: 77, }, }, }, ), ], span: Span { start: Position { line: 50, column: 31, }, end: Position { line: 50, column: 79, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 51, column: 13, }, end: Position { line: 51, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 51, column: 27, }, end: Position { line: 51, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 51, column: 31, }, end: Position { line: 51, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Host status after agent startup.", span: Span { start: Position { line: 51, column: 38, }, end: Position { line: 51, column: 70, }, }, }, ), ], span: Span { start: Position { line: 51, column: 37, }, end: Position { line: 51, column: 71, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 52, column: 13, }, end: Position { line: 52, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "working", span: Span { start: Position { line: 52, column: 24, }, end: Position { line: 52, column: 31, }, }, }, ), ], span: Span { start: Position { line: 52, column: 23, }, end: Position { line: 52, column: 32, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 31, }, end: Position { line: 53, column: 12, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "on_stop", span: Span { start: Position { line: 54, column: 11, }, end: Position { line: 54, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 55, column: 13, }, end: Position { line: 55, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 55, column: 20, }, end: Position { line: 55, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 55, column: 26, }, end: Position { line: 55, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "working", span: Span { start: Position { line: 55, column: 34, }, end: Position { line: 55, column: 41, }, }, }, ), ], span: Span { start: Position { line: 55, column: 33, }, end: Position { line: 55, column: 42, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "standby", span: Span { start: Position { line: 55, column: 44, }, end: Position { line: 55, column: 51, }, }, }, ), ], span: Span { start: Position { line: 55, column: 43, }, end: Position { line: 55, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "maintenance", span: Span { start: Position { line: 55, column: 54, }, end: Position { line: 55, column: 65, }, }, }, ), ], span: Span { start: Position { line: 55, column: 53, }, end: Position { line: 55, column: 66, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "poweroff", span: Span { start: Position { line: 55, column: 68, }, end: Position { line: 55, column: 76, }, }, }, ), ], span: Span { start: Position { line: 55, column: 67, }, end: Position { line: 55, column: 77, }, }, }, ), ], span: Span { start: Position { line: 55, column: 31, }, end: Position { line: 55, column: 79, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 56, column: 13, }, end: Position { line: 56, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 56, column: 27, }, end: Position { line: 56, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 56, column: 31, }, end: Position { line: 56, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Host status after agent shutdown.", span: Span { start: Position { line: 56, column: 38, }, end: Position { line: 56, column: 71, }, }, }, ), ], span: Span { start: Position { line: 56, column: 37, }, end: Position { line: 56, column: 72, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 57, column: 13, }, end: Position { line: 57, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "poweroff", span: Span { start: Position { line: 57, column: 24, }, end: Position { line: 57, column: 32, }, }, }, ), ], span: Span { start: Position { line: 57, column: 23, }, end: Position { line: 57, column: 33, }, }, }, ), }, ), ], span: Span { start: Position { line: 54, column: 30, }, end: Position { line: 58, column: 12, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 48, column: 31, }, end: Position { line: 59, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 61, column: 16, }, }, }, ), Raw( PartRaw { content: "diagnostic", span: Span { start: Position { line: 61, column: 17, }, end: Position { line: 61, column: 27, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 62, column: 11, }, end: Position { line: 62, column: 25, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 62, column: 27, }, end: Position { line: 62, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 62, column: 31, }, end: Position { line: 62, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Collect memory usage for the agent itself", span: Span { start: Position { line: 62, column: 38, }, end: Position { line: 62, column: 79, }, }, }, ), ], span: Span { start: Position { line: 62, column: 37, }, end: Position { line: 62, column: 80, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 45, column: 30, }, end: Position { line: 63, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 31, column: 25, }, end: Position { line: 64, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 37, }, end: Position { line: 65, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 67, column: 3, }, end: Position { line: 67, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 67, column: 12, }, end: Position { line: 67, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 67, column: 17, }, end: Position { line: 67, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 67, column: 21, }, end: Position { line: 67, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 68, column: 5, }, end: Position { line: 68, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 68, column: 17, }, end: Position { line: 68, column: 31, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 68, column: 39, }, end: Position { line: 68, column: 43, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "mackerel-agent", span: Span { start: Position { line: 68, column: 47, }, end: Position { line: 68, column: 61, }, }, }, ), ], span: Span { start: Position { line: 68, column: 45, }, end: Position { line: 68, column: 63, }, }, }, ), span: Span { start: Position { line: 68, column: 34, }, end: Position { line: 68, column: 63, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 70, column: 5, }, end: Position { line: 70, column: 16, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 70, column: 17, }, end: Position { line: 70, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent/mackerel-agent.conf", span: Span { start: Position { line: 71, column: 8, }, end: Position { line: 71, column: 42, }, }, }, ), ], span: Span { start: Position { line: 71, column: 7, }, end: Position { line: 71, column: 43, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 71, column: 44, }, end: Position { line: 71, column: 50, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settingsFmt", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 72, column: 21, }, end: Position { line: 72, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent.conf", span: Span { start: Position { line: 72, column: 31, }, end: Position { line: 72, column: 50, }, }, }, ), ], span: Span { start: Position { line: 72, column: 30, }, end: Position { line: 72, column: 51, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 72, column: 52, }, end: Position { line: 72, column: 55, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 72, column: 56, }, end: Position { line: 72, column: 64, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent/conf.d/api-key.conf", span: Span { start: Position { line: 73, column: 8, }, end: Position { line: 73, column: 42, }, }, }, ), ], span: Span { start: Position { line: 73, column: 7, }, end: Position { line: 73, column: 43, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 73, column: 44, }, end: Position { line: 73, column: 50, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 73, column: 53, }, end: Position { line: 73, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "apiKeyFile", span: Span { start: Position { line: 73, column: 57, }, end: Position { line: 73, column: 67, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 70, column: 23, }, end: Position { line: 74, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 76, column: 5, }, end: Position { line: 76, column: 13, }, }, }, ), Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 76, column: 14, }, end: Position { line: 76, column: 28, }, }, }, ), Raw( PartRaw { content: "settings", span: Span { start: Position { line: 76, column: 29, }, end: Position { line: 76, column: 37, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 77, column: 7, }, end: Position { line: 77, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 77, column: 14, }, end: Position { line: 77, column: 23, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/mackerel-agent", span: Span { start: Position { line: 77, column: 25, }, end: Position { line: 77, column: 48, }, }, }, ), ], span: Span { start: Position { line: 77, column: 24, }, end: Position { line: 77, column: 49, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pidfile", span: Span { start: Position { line: 78, column: 7, }, end: Position { line: 78, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 78, column: 17, }, end: Position { line: 78, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/run/mackerel-agent/mackerel-agent.pid", span: Span { start: Position { line: 78, column: 28, }, end: Position { line: 78, column: 66, }, }, }, ), ], span: Span { start: Position { line: 78, column: 27, }, end: Position { line: 78, column: 67, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "include", span: Span { start: Position { line: 81, column: 7, }, end: Position { line: 81, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 81, column: 17, }, end: Position { line: 81, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/etc/mackerel-agent/conf.d/*.conf", span: Span { start: Position { line: 81, column: 28, }, end: Position { line: 81, column: 61, }, }, }, ), ], span: Span { start: Position { line: 81, column: 27, }, end: Position { line: 81, column: 62, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 76, column: 40, }, end: Position { line: 82, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 85, column: 5, }, end: Position { line: 85, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 85, column: 13, }, end: Position { line: 85, column: 21, }, }, }, ), Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 85, column: 22, }, end: Position { line: 85, column: 36, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 86, column: 7, }, end: Position { line: 86, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mackerel.io agent", span: Span { start: Position { line: 86, column: 22, }, end: Position { line: 86, column: 39, }, }, }, ), ], span: Span { start: Position { line: 86, column: 21, }, end: Position { line: 86, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 87, column: 7, }, end: Position { line: 87, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 87, column: 18, }, end: Position { line: 87, column: 39, }, }, }, ), ], span: Span { start: Position { line: 87, column: 17, }, end: Position { line: 87, column: 40, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "nss-lookup.target", span: Span { start: Position { line: 87, column: 42, }, end: Position { line: 87, column: 59, }, }, }, ), ], span: Span { start: Position { line: 87, column: 41, }, end: Position { line: 87, column: 60, }, }, }, ), ], span: Span { start: Position { line: 87, column: 15, }, end: Position { line: 87, column: 62, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 88, column: 7, }, end: Position { line: 88, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 88, column: 21, }, end: Position { line: 88, column: 38, }, }, }, ), ], span: Span { start: Position { line: 88, column: 20, }, end: Position { line: 88, column: 39, }, }, }, ), ], span: Span { start: Position { line: 88, column: 18, }, end: Position { line: 88, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 89, column: 7, }, end: Position { line: 89, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "MACKEREL_PLUGIN_WORKDIR", span: Span { start: Position { line: 90, column: 9, }, end: Position { line: 90, column: 32, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 90, column: 35, }, end: Position { line: 90, column: 44, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "%C/mackerel-agent", span: Span { start: Position { line: 90, column: 46, }, end: Position { line: 90, column: 63, }, }, }, ), ], span: Span { start: Position { line: 90, column: 45, }, end: Position { line: 90, column: 64, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 89, column: 21, }, end: Position { line: 91, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 92, column: 7, }, end: Position { line: 92, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 93, column: 9, }, end: Position { line: 93, column: 20, }, }, }, ), ], to: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 93, column: 24, }, end: Position { line: 93, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runAsRoot", span: Span { start: Position { line: 93, column: 28, }, end: Position { line: 93, column: 37, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 93, column: 23, }, end: Position { line: 93, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PrivateTmp", span: Span { start: Position { line: 94, column: 9, }, end: Position { line: 94, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 94, column: 22, }, end: Position { line: 94, column: 31, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 94, column: 32, }, end: Position { line: 94, column: 36, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CacheDirectory", span: Span { start: Position { line: 95, column: 9, }, end: Position { line: 95, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 95, column: 27, }, end: Position { line: 95, column: 41, }, }, }, ), ], span: Span { start: Position { line: 95, column: 26, }, end: Position { line: 95, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ConfigurationDirectory", span: Span { start: Position { line: 96, column: 9, }, end: Position { line: 96, column: 31, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 96, column: 35, }, end: Position { line: 96, column: 49, }, }, }, ), ], span: Span { start: Position { line: 96, column: 34, }, end: Position { line: 96, column: 50, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RuntimeDirectory", span: Span { start: Position { line: 97, column: 9, }, end: Position { line: 97, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 97, column: 29, }, end: Position { line: 97, column: 43, }, }, }, ), ], span: Span { start: Position { line: 97, column: 28, }, end: Position { line: 97, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectory", span: Span { start: Position { line: 98, column: 9, }, end: Position { line: 98, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 98, column: 27, }, end: Position { line: 98, column: 41, }, }, }, ), ], span: Span { start: Position { line: 98, column: 26, }, end: Position { line: 98, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 99, column: 9, }, end: Position { line: 99, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 99, column: 24, }, end: Position { line: 99, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 99, column: 29, }, end: Position { line: 99, column: 43, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mackerel-agent supervise", span: Span { start: Position { line: 99, column: 22, }, end: Position { line: 99, column: 73, }, }, }, ), ], span: Span { start: Position { line: 99, column: 21, }, end: Position { line: 99, column: 74, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStopPost", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 100, column: 24, }, end: Position { line: 100, column: 28, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 100, column: 29, }, end: Position { line: 100, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "autoRetirement", span: Span { start: Position { line: 100, column: 33, }, end: Position { line: 100, column: 47, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 100, column: 51, }, end: Position { line: 100, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mackerel-agent", span: Span { start: Position { line: 100, column: 55, }, end: Position { line: 100, column: 69, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mackerel-agent retire -force", span: Span { start: Position { line: 100, column: 49, }, end: Position { line: 100, column: 103, }, }, }, ), ], span: Span { start: Position { line: 100, column: 48, }, end: Position { line: 100, column: 104, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecReload", span: Span { start: Position { line: 101, column: 9, }, end: Position { line: 101, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 101, column: 25, }, end: Position { line: 101, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "coreutils", span: Span { start: Position { line: 101, column: 30, }, end: Position { line: 101, column: 39, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/kill -HUP $MAINPID", span: Span { start: Position { line: 101, column: 23, }, end: Position { line: 101, column: 63, }, }, }, ), ], span: Span { start: Position { line: 101, column: 22, }, end: Position { line: 101, column: 64, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "LimitNOFILE", span: Span { start: Position { line: 102, column: 9, }, end: Position { line: 102, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 102, column: 23, }, end: Position { line: 102, column: 32, }, }, }, ), arguments: [ Integer( Integer { value: "65536", span: Span { start: Position { line: 102, column: 33, }, end: Position { line: 102, column: 38, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "LimitNPROC", span: Span { start: Position { line: 103, column: 9, }, end: Position { line: 103, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 103, column: 22, }, end: Position { line: 103, column: 31, }, }, }, ), arguments: [ Integer( Integer { value: "65536", span: Span { start: Position { line: 103, column: 32, }, end: Position { line: 103, column: 37, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 92, column: 23, }, end: Position { line: 104, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartTriggers", span: Span { start: Position { line: 105, column: 7, }, end: Position { line: 105, column: 22, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 106, column: 9, }, end: Position { line: 106, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 106, column: 16, }, end: Position { line: 106, column: 27, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 106, column: 28, }, end: Position { line: 106, column: 31, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "mackerel-agent/mackerel-agent.conf", span: Span { start: Position { line: 106, column: 33, }, end: Position { line: 106, column: 67, }, }, }, ), ], span: Span { start: Position { line: 106, column: 32, }, end: Position { line: 106, column: 68, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 106, column: 69, }, end: Position { line: 106, column: 75, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 105, column: 25, }, end: Position { line: 107, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 85, column: 39, }, end: Position { line: 108, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 67, column: 28, }, end: Position { line: 109, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 4, }, end: Position { line: 110, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 110, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 110, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 110, column: 2, }, }, }, )