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: 5, }, end: Position { line: 5, column: 8, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 5, column: 11, }, end: Position { line: 5, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 5, column: 18, }, end: Position { line: 5, column: 26, }, }, }, ), Raw( PartRaw { content: "SystemdJournal2Gelf", span: Span { start: Position { line: 5, column: 27, }, end: Position { line: 5, column: 46, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 13, }, }, }, ), Raw( PartRaw { content: "SystemdJournal2Gelf", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 11, column: 16, }, end: Position { line: 11, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 11, column: 22, }, end: Position { line: 11, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 12, column: 19, }, end: Position { line: 12, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 13, column: 27, }, end: Position { line: 13, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to enable SystemdJournal2Gelf.\n", span: Span { start: Position { line: 14, column: 1, }, end: Position { line: 15, column: 9, }, }, }, ), ], span: Span { start: Position { line: 13, column: 33, }, end: Position { line: 15, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 16, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "graylogServer", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 18, column: 23, }, end: Position { line: 18, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 19, column: 22, }, end: Position { line: 19, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "graylog2.example.com:11201", span: Span { start: Position { line: 20, column: 20, }, end: Position { line: 20, column: 46, }, }, }, ), ], span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 27, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Host and port of your graylog2 input. This should be a GELF\nUDP input.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 24, column: 9, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 24, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 32, }, end: Position { line: 25, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraOptions", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 22, }, end: Position { line: 27, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "separatedString", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 28, column: 39, }, end: Position { line: 28, column: 40, }, }, }, ), ], span: Span { start: Position { line: 28, column: 38, }, end: Position { line: 28, column: 41, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 30, column: 23, }, end: Position { line: 30, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 30, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Any extra flags to pass to SystemdJournal2Gelf. Note that\nthese are basically `journalctl` flags.\n", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 33, column: 9, }, }, }, ), ], span: Span { start: Position { line: 30, column: 33, }, end: Position { line: 33, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 31, }, end: Position { line: 34, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 36, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 37, column: 22, }, end: Position { line: 37, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systemd-journal2gelf", span: Span { start: Position { line: 38, column: 24, }, end: Position { line: 38, column: 44, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 39, column: 23, }, end: Position { line: 39, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.systemd-journal2gelf", span: Span { start: Position { line: 39, column: 42, }, end: Position { line: 39, column: 67, }, }, }, ), ], span: Span { start: Position { line: 39, column: 41, }, end: Position { line: 39, column: 68, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 23, }, end: Position { line: 40, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 27, }, end: Position { line: 40, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "SystemdJournal2Gelf package to use.\n", span: Span { start: Position { line: 41, column: 1, }, end: Position { line: 42, column: 9, }, }, }, ), ], span: Span { start: Position { line: 40, column: 33, }, end: Position { line: 42, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 26, }, end: Position { line: 43, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 36, }, end: Position { line: 45, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 46, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 48, column: 3, }, end: Position { line: 48, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 48, column: 12, }, end: Position { line: 48, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 48, column: 17, }, end: Position { line: 48, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 48, column: 21, }, end: Position { line: 48, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 21, }, }, }, ), Raw( PartRaw { content: "SystemdJournal2Gelf", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 41, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "SystemdJournal2Gelf", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 41, }, }, }, ), ], span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 32, }, }, }, ), ], span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 33, }, }, }, ), ], span: Span { start: Position { line: 51, column: 15, }, end: Position { line: 51, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 38, }, }, }, ), ], span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 39, }, }, }, ), ], span: Span { start: Position { line: 52, column: 18, }, end: Position { line: 52, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 54, column: 24, }, end: Position { line: 54, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 54, column: 28, }, end: Position { line: 54, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/SystemdJournal2Gelf ", span: Span { start: Position { line: 54, column: 22, }, end: Position { line: 54, column: 61, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 54, column: 63, }, end: Position { line: 54, column: 66, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "graylogServer", span: Span { start: Position { line: 54, column: 67, }, end: Position { line: 54, column: 80, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " --follow ", span: Span { start: Position { line: 54, column: 22, }, end: Position { line: 54, column: 91, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 54, column: 93, }, end: Position { line: 54, column: 96, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraOptions", span: Span { start: Position { line: 54, column: 97, }, end: Position { line: 54, column: 109, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 111, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 55, column: 20, }, end: Position { line: 55, column: 30, }, }, }, ), ], span: Span { start: Position { line: 55, column: 19, }, end: Position { line: 55, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RestartSec", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "30", span: Span { start: Position { line: 56, column: 23, }, end: Position { line: 56, column: 25, }, }, }, ), ], span: Span { start: Position { line: 56, column: 22, }, end: Position { line: 56, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 53, column: 23, }, end: Position { line: 57, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 44, }, end: Position { line: 58, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 28, }, end: Position { line: 59, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 60, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 60, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 60, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 60, column: 2, }, }, }, )