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: "logrotate", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 34, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathOpts", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "name", default: None, }, ], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 14, column: 9, }, end: Position { line: 14, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 14, column: 16, }, end: Position { line: 14, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 14, column: 22, }, end: Position { line: 14, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 15, column: 19, }, end: Position { line: 15, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 23, }, end: Position { line: 16, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 16, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to enable log rotation for this path. This can be used to explicitly disable\nlogging that has been configured by NixOS.\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 19, column: 9, }, }, }, ), ], span: Span { start: Position { line: 16, column: 33, }, end: Position { line: 19, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 25, }, end: Position { line: 20, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 22, column: 14, }, end: Position { line: 22, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 16, }, end: Position { line: 23, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 17, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 24, column: 20, }, end: Position { line: 24, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 22, column: 23, }, end: Position { line: 25, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 27, column: 22, }, }, }, ), 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: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "either", span: Span { start: Position { line: 28, column: 28, }, end: Position { line: 28, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 28, column: 35, }, end: Position { line: 28, column: 38, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 28, column: 40, }, end: Position { line: 28, column: 46, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 28, column: 47, }, end: Position { line: 28, column: 50, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "name", span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "attribute name", span: Span { start: Position { line: 30, column: 24, }, end: Position { line: 30, column: 38, }, }, }, ), ], span: Span { start: Position { line: 30, column: 23, }, end: Position { line: 30, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 23, }, end: Position { line: 31, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 31, column: 27, }, end: Position { line: 31, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The path to log files to be rotated.\nSpaces are allowed and normal shell quoting rules apply,\nwith ', \", and \\ characters supported.\n", span: Span { start: Position { line: 32, column: 1, }, end: Position { line: 35, column: 9, }, }, }, ), ], span: Span { start: Position { line: 31, column: 33, }, end: Position { line: 35, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 23, }, end: Position { line: 36, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 38, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 38, column: 14, }, end: Position { line: 38, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 39, column: 21, }, end: Position { line: 39, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 39, column: 28, }, end: Position { line: 39, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 39, column: 35, }, end: Position { line: 39, column: 38, }, }, }, ), ], }, ), span: Span { start: Position { line: 39, column: 16, }, end: Position { line: 39, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 40, column: 19, }, end: Position { line: 40, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 41, column: 23, }, end: Position { line: 41, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 41, column: 27, }, end: Position { line: 41, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The user account to use for rotation.\n", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 43, column: 9, }, }, }, ), ], span: Span { start: Position { line: 41, column: 33, }, end: Position { line: 43, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 44, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 46, column: 7, }, end: Position { line: 46, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 46, column: 15, }, end: Position { line: 46, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 47, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 47, column: 35, }, end: Position { line: 47, column: 38, }, }, }, ), ], }, ), span: Span { start: Position { line: 47, column: 16, }, end: Position { line: 47, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 48, column: 9, }, end: Position { line: 48, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 48, column: 19, }, end: Position { line: 48, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 49, column: 9, }, end: Position { line: 49, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 49, column: 23, }, end: Position { line: 49, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 49, column: 27, }, end: Position { line: 49, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The group to use for rotation.\n", span: Span { start: Position { line: 50, column: 1, }, end: Position { line: 51, column: 9, }, }, }, ), ], span: Span { start: Position { line: 49, column: 33, }, end: Position { line: 51, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 46, column: 24, }, end: Position { line: 52, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "frequency", span: Span { start: Position { line: 54, column: 7, }, end: Position { line: 54, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 55, column: 16, }, end: Position { line: 55, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "hourly", span: Span { start: Position { line: 55, column: 30, }, end: Position { line: 55, column: 36, }, }, }, ), ], span: Span { start: Position { line: 55, column: 29, }, end: Position { line: 55, column: 37, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "daily", span: Span { start: Position { line: 55, column: 39, }, end: Position { line: 55, column: 44, }, }, }, ), ], span: Span { start: Position { line: 55, column: 38, }, end: Position { line: 55, column: 45, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "weekly", span: Span { start: Position { line: 55, column: 47, }, end: Position { line: 55, column: 53, }, }, }, ), ], span: Span { start: Position { line: 55, column: 46, }, end: Position { line: 55, column: 54, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "monthly", span: Span { start: Position { line: 55, column: 56, }, end: Position { line: 55, column: 63, }, }, }, ), ], span: Span { start: Position { line: 55, column: 55, }, end: Position { line: 55, column: 64, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "yearly", span: Span { start: Position { line: 55, column: 66, }, end: Position { line: 55, column: 72, }, }, }, ), ], span: Span { start: Position { line: 55, column: 65, }, end: Position { line: 55, column: 73, }, }, }, ), ], span: Span { start: Position { line: 55, column: 27, }, end: Position { line: 55, column: 75, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "daily", span: Span { start: Position { line: 56, column: 20, }, end: Position { line: 56, column: 25, }, }, }, ), ], span: Span { start: Position { line: 56, column: 19, }, end: Position { line: 56, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 57, column: 23, }, end: Position { line: 57, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 57, column: 27, }, end: Position { line: 57, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "How often to rotate the logs.\n", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 9, }, }, }, ), ], span: Span { start: Position { line: 57, column: 33, }, end: Position { line: 59, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 54, column: 28, }, end: Position { line: 60, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "keep", span: Span { start: Position { line: 62, column: 7, }, end: Position { line: 62, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 62, column: 14, }, end: Position { line: 62, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 63, column: 16, }, end: Position { line: 63, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 63, column: 22, }, end: Position { line: 63, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 16, }, }, }, ), ], to: Integer( Integer { value: "20", span: Span { start: Position { line: 64, column: 19, }, end: Position { line: 64, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 65, column: 23, }, end: Position { line: 65, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "How many rotations to keep.\n", span: Span { start: Position { line: 66, column: 1, }, end: Position { line: 67, column: 9, }, }, }, ), ], span: Span { start: Position { line: 65, column: 33, }, end: Position { line: 67, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 62, column: 23, }, end: Position { line: 68, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 70, column: 7, }, end: Position { line: 70, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 70, column: 21, }, end: Position { line: 70, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 71, column: 9, }, end: Position { line: 71, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 71, column: 16, }, end: Position { line: 71, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 71, column: 22, }, end: Position { line: 71, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 72, column: 19, }, end: Position { line: 72, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 73, column: 9, }, end: Position { line: 73, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 73, column: 23, }, end: Position { line: 73, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 73, column: 27, }, end: Position { line: 73, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Extra logrotate config options for this path. Refer to\n for details.\n", span: Span { start: Position { line: 74, column: 1, }, end: Position { line: 76, column: 9, }, }, }, ), ], span: Span { start: Position { line: 73, column: 33, }, end: Position { line: 76, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 70, column: 30, }, end: Position { line: 77, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 79, column: 7, }, end: Position { line: 79, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 79, column: 18, }, end: Position { line: 79, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 80, column: 16, }, end: Position { line: 80, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 80, column: 22, }, end: Position { line: 80, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 16, }, }, }, ), ], to: Integer( Integer { value: "1000", span: Span { start: Position { line: 81, column: 19, }, end: Position { line: 81, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 82, column: 23, }, end: Position { line: 82, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 82, column: 27, }, end: Position { line: 82, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Order of this logrotate block in relation to the others. The semantics are\nthe same as with `lib.mkOrder`. Smaller values have a greater priority.\n", span: Span { start: Position { line: 83, column: 1, }, end: Position { line: 85, column: 9, }, }, }, ), ], span: Span { start: Position { line: 82, column: 33, }, end: Position { line: 85, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 79, column: 27, }, end: Position { line: 86, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 15, }, end: Position { line: 87, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 89, column: 5, }, end: Position { line: 89, column: 11, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 89, column: 12, }, end: Position { line: 89, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "name", span: Span { start: Position { line: 89, column: 19, }, end: Position { line: 89, column: 23, }, }, }, ), }, ), ], span: Span { start: Position { line: 11, column: 29, }, end: Position { line: 90, column: 4, }, }, }, ), span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 90, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "generateLine", span: Span { start: Position { line: 92, column: 3, }, end: Position { line: 92, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 93, column: 8, }, end: Position { line: 93, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 93, column: 17, }, end: Position { line: 93, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 93, column: 22, }, end: Position { line: 93, column: 23, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "files", span: Span { start: Position { line: 93, column: 27, }, end: Position { line: 93, column: 32, }, }, }, ), ], span: Span { start: Position { line: 93, column: 26, }, end: Position { line: 93, column: 33, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 93, column: 35, }, end: Position { line: 93, column: 43, }, }, }, ), ], span: Span { start: Position { line: 93, column: 34, }, end: Position { line: 93, column: 44, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 93, column: 46, }, end: Position { line: 93, column: 52, }, }, }, ), ], span: Span { start: Position { line: 93, column: 45, }, end: Position { line: 93, column: 53, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "global", span: Span { start: Position { line: 93, column: 55, }, end: Position { line: 93, column: 61, }, }, }, ), ], span: Span { start: Position { line: 93, column: 54, }, end: Position { line: 93, column: 62, }, }, }, ), ], span: Span { start: Position { line: 93, column: 24, }, end: Position { line: 93, column: 64, }, }, }, ), ], }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 93, column: 68, }, end: Position { line: 93, column: 69, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 93, column: 73, }, end: Position { line: 93, column: 77, }, }, }, ), }, ), }, ), then: Identifier( Identifier { id: "null", span: Span { start: Position { line: 93, column: 83, }, end: Position { line: 93, column: 87, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 94, column: 13, }, end: Position { line: 94, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 94, column: 22, }, end: Position { line: 94, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 94, column: 27, }, end: Position { line: 94, column: 28, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 94, column: 32, }, end: Position { line: 94, column: 43, }, }, }, ), ], span: Span { start: Position { line: 94, column: 31, }, end: Position { line: 94, column: 44, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "frequency", span: Span { start: Position { line: 94, column: 46, }, end: Position { line: 94, column: 55, }, }, }, ), ], span: Span { start: Position { line: 94, column: 45, }, end: Position { line: 94, column: 56, }, }, }, ), ], span: Span { start: Position { line: 94, column: 29, }, end: Position { line: 94, column: 58, }, }, }, ), ], }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 94, column: 67, }, end: Position { line: 94, column: 68, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 94, column: 65, }, end: Position { line: 94, column: 71, }, }, }, ), ], span: Span { start: Position { line: 94, column: 64, }, end: Position { line: 94, column: 72, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 95, column: 13, }, end: Position { line: 95, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 95, column: 22, }, end: Position { line: 95, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 95, column: 27, }, end: Position { line: 95, column: 28, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "firstaction", span: Span { start: Position { line: 95, column: 32, }, end: Position { line: 95, column: 43, }, }, }, ), ], span: Span { start: Position { line: 95, column: 31, }, end: Position { line: 95, column: 44, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "lastaction", span: Span { start: Position { line: 95, column: 46, }, end: Position { line: 95, column: 56, }, }, }, ), ], span: Span { start: Position { line: 95, column: 45, }, end: Position { line: 95, column: 57, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "prerotate", span: Span { start: Position { line: 95, column: 59, }, end: Position { line: 95, column: 68, }, }, }, ), ], span: Span { start: Position { line: 95, column: 58, }, end: Position { line: 95, column: 69, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "postrotate", span: Span { start: Position { line: 95, column: 71, }, end: Position { line: 95, column: 81, }, }, }, ), ], span: Span { start: Position { line: 95, column: 70, }, end: Position { line: 95, column: 82, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "preremove", span: Span { start: Position { line: 95, column: 84, }, end: Position { line: 95, column: 93, }, }, }, ), ], span: Span { start: Position { line: 95, column: 83, }, end: Position { line: 95, column: 94, }, }, }, ), ], span: Span { start: Position { line: 95, column: 29, }, end: Position { line: 95, column: 96, }, }, }, ), ], }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 96, column: 18, }, end: Position { line: 96, column: 19, }, }, }, ), }, ), Raw( PartRaw { content: "\n ", span: Span { start: Position { line: 96, column: 16, }, end: Position { line: 96, column: 26, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 96, column: 28, }, end: Position { line: 96, column: 29, }, }, }, ), }, ), Raw( PartRaw { content: "\n endscript\n", span: Span { start: Position { line: 96, column: 16, }, end: Position { line: 96, column: 45, }, }, }, ), ], span: Span { start: Position { line: 96, column: 15, }, end: Position { line: 96, column: 46, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isInt", span: Span { start: Position { line: 97, column: 13, }, end: Position { line: 97, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 97, column: 19, }, end: Position { line: 97, column: 20, }, }, }, ), ], }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 97, column: 29, }, end: Position { line: 97, column: 30, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 97, column: 27, }, end: Position { line: 97, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 97, column: 34, }, end: Position { line: 97, column: 42, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 97, column: 43, }, end: Position { line: 97, column: 44, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 97, column: 27, }, end: Position { line: 97, column: 47, }, }, }, ), ], span: Span { start: Position { line: 97, column: 26, }, end: Position { line: 97, column: 48, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 98, column: 13, }, end: Position { line: 98, column: 14, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "true", span: Span { start: Position { line: 98, column: 18, }, end: Position { line: 98, column: 22, }, }, }, ), }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 98, column: 31, }, end: Position { line: 98, column: 32, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 98, column: 29, }, end: Position { line: 98, column: 35, }, }, }, ), ], span: Span { start: Position { line: 98, column: 28, }, end: Position { line: 98, column: 36, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 99, column: 13, }, end: Position { line: 99, column: 14, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "false", span: Span { start: Position { line: 99, column: 18, }, end: Position { line: 99, column: 23, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "no", span: Span { start: Position { line: 99, column: 30, }, end: Position { line: 99, column: 36, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 99, column: 34, }, end: Position { line: 99, column: 35, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 99, column: 30, }, end: Position { line: 99, column: 38, }, }, }, ), ], span: Span { start: Position { line: 99, column: 29, }, end: Position { line: 99, column: 39, }, }, }, ), else_: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 100, column: 13, }, end: Position { line: 100, column: 14, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 100, column: 11, }, end: Position { line: 100, column: 16, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 100, column: 18, }, end: Position { line: 100, column: 19, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 100, column: 11, }, end: Position { line: 100, column: 22, }, }, }, ), ], span: Span { start: Position { line: 100, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 99, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 98, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 97, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 95, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 94, column: 10, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 93, column: 5, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 92, column: 21, }, end: Position { line: 100, column: 23, }, }, }, ), span: Span { start: Position { line: 92, column: 18, }, end: Position { line: 100, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "generateSection", span: Span { start: Position { line: 101, column: 3, }, end: Position { line: 101, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "indent", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "settings", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 101, column: 39, }, end: Position { line: 101, column: 55, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "fixedWidthString", span: Span { start: Position { line: 101, column: 57, }, end: Position { line: 101, column: 73, }, }, }, ), arguments: [ Identifier( Identifier { id: "indent", span: Span { start: Position { line: 101, column: 74, }, end: Position { line: 101, column: 80, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 101, column: 82, }, end: Position { line: 101, column: 83, }, }, }, ), ], span: Span { start: Position { line: 101, column: 81, }, end: Position { line: 101, column: 84, }, }, }, ), String( String_ { parts: [], span: Span { start: Position { line: 101, column: 85, }, end: Position { line: 101, column: 87, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 102, column: 5, }, end: Position { line: 102, column: 11, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 102, column: 16, }, end: Position { line: 102, column: 17, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 102, column: 21, }, end: Position { line: 102, column: 25, }, }, }, ), }, ), span: Span { start: Position { line: 102, column: 13, }, end: Position { line: 102, column: 25, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 102, column: 28, }, end: Position { line: 102, column: 42, }, }, }, ), arguments: [ Identifier( Identifier { id: "generateLine", span: Span { start: Position { line: 102, column: 43, }, end: Position { line: 102, column: 55, }, }, }, ), Identifier( Identifier { id: "settings", span: Span { start: Position { line: 102, column: 56, }, end: Position { line: 102, column: 64, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 101, column: 29, }, end: Position { line: 103, column: 4, }, }, }, ), span: Span { start: Position { line: 101, column: 21, }, end: Position { line: 103, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkConf", span: Span { start: Position { line: 106, column: 3, }, end: Position { line: 106, column: 9, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "settings", }, ), body: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settings", span: Span { start: Position { line: 107, column: 8, }, end: Position { line: 107, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "global", span: Span { start: Position { line: 107, column: 17, }, end: Position { line: 107, column: 23, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 107, column: 27, }, end: Position { line: 107, column: 32, }, }, }, ), ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "generateSection", span: Span { start: Position { line: 107, column: 38, }, end: Position { line: 107, column: 53, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 107, column: 54, }, end: Position { line: 107, column: 55, }, }, }, ), Identifier( Identifier { id: "settings", span: Span { start: Position { line: 107, column: 56, }, end: Position { line: 107, column: 64, }, }, }, ), ], }, ), else_: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 109, column: 1, }, end: Position { line: 109, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 109, column: 9, }, end: Position { line: 109, column: 28, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 109, column: 30, }, end: Position { line: 109, column: 32, }, }, }, ), ], span: Span { start: Position { line: 109, column: 29, }, end: Position { line: 109, column: 33, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "files", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "\"", span: Span { start: Position { line: 109, column: 44, }, end: Position { line: 109, column: 45, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "files", span: Span { start: Position { line: 109, column: 47, }, end: Position { line: 109, column: 52, }, }, }, ), }, ), Raw( PartRaw { content: "\"", span: Span { start: Position { line: 109, column: 44, }, end: Position { line: 109, column: 54, }, }, }, ), ], span: Span { start: Position { line: 109, column: 42, }, end: Position { line: 109, column: 56, }, }, }, ), span: Span { start: Position { line: 109, column: 35, }, end: Position { line: 109, column: 56, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toList", span: Span { start: Position { line: 109, column: 59, }, end: Position { line: 109, column: 65, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settings", span: Span { start: Position { line: 109, column: 66, }, end: Position { line: 109, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "files", span: Span { start: Position { line: 109, column: 75, }, end: Position { line: 109, column: 80, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), Raw( PartRaw { content: " {\n ", span: Span { start: Position { line: 109, column: 1, }, end: Position { line: 110, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "generateSection", span: Span { start: Position { line: 110, column: 11, }, end: Position { line: 110, column: 26, }, }, }, ), arguments: [ Integer( Integer { value: "2", span: Span { start: Position { line: 110, column: 27, }, end: Position { line: 110, column: 28, }, }, }, ), Identifier( Identifier { id: "settings", span: Span { start: Position { line: 110, column: 29, }, end: Position { line: 110, column: 37, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "}\n", span: Span { start: Position { line: 109, column: 1, }, end: Position { line: 111, column: 5, }, }, }, ), ], span: Span { start: Position { line: 108, column: 10, }, end: Position { line: 111, column: 7, }, }, }, ), span: Span { start: Position { line: 107, column: 5, }, end: Position { line: 111, column: 7, }, }, }, ), span: Span { start: Position { line: 106, column: 12, }, end: Position { line: 111, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapPathOptToSetting", span: Span { start: Position { line: 114, column: 3, }, end: Position { line: 114, column: 22, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "n", span: Span { start: Position { line: 115, column: 8, }, end: Position { line: 115, column: 9, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "keep", span: Span { start: Position { line: 115, column: 14, }, end: Position { line: 115, column: 18, }, }, }, ), ], span: Span { start: Position { line: 115, column: 13, }, end: Position { line: 115, column: 19, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 115, column: 25, }, end: Position { line: 115, column: 38, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "rotate", span: Span { start: Position { line: 115, column: 40, }, end: Position { line: 115, column: 46, }, }, }, ), ], span: Span { start: Position { line: 115, column: 39, }, end: Position { line: 115, column: 47, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 115, column: 48, }, end: Position { line: 115, column: 49, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "n", span: Span { start: Position { line: 116, column: 13, }, end: Position { line: 116, column: 14, }, }, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 116, column: 19, }, end: Position { line: 116, column: 23, }, }, }, ), ], span: Span { start: Position { line: 116, column: 18, }, end: Position { line: 116, column: 24, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 116, column: 30, }, end: Position { line: 116, column: 43, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "files", span: Span { start: Position { line: 116, column: 45, }, end: Position { line: 116, column: 50, }, }, }, ), ], span: Span { start: Position { line: 116, column: 44, }, end: Position { line: 116, column: 51, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 116, column: 52, }, end: Position { line: 116, column: 53, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 117, column: 10, }, end: Position { line: 117, column: 23, }, }, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 117, column: 24, }, end: Position { line: 117, column: 25, }, }, }, ), Identifier( Identifier { id: "v", span: Span { start: Position { line: 117, column: 26, }, end: Position { line: 117, column: 27, }, }, }, ), ], }, ), span: Span { start: Position { line: 116, column: 10, }, end: Position { line: 117, column: 27, }, }, }, ), span: Span { start: Position { line: 115, column: 5, }, end: Position { line: 117, column: 27, }, }, }, ), span: Span { start: Position { line: 114, column: 28, }, end: Position { line: 117, column: 27, }, }, }, ), span: Span { start: Position { line: 114, column: 25, }, end: Position { line: 117, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mapPathsToSettings", span: Span { start: Position { line: 119, column: 3, }, end: Position { line: 119, column: 21, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "path", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pathOpts", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 120, column: 5, }, end: Position { line: 120, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "path", span: Span { start: Position { line: 120, column: 19, }, end: Position { line: 120, column: 23, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterAttrs", span: Span { start: Position { line: 121, column: 7, }, end: Position { line: 121, column: 18, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: BinaryOperation( BinaryOperation { left: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 121, column: 28, }, end: Position { line: 121, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 121, column: 37, }, end: Position { line: 121, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "n", span: Span { start: Position { line: 121, column: 42, }, end: Position { line: 121, column: 43, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 121, column: 47, }, end: Position { line: 121, column: 51, }, }, }, ), ], span: Span { start: Position { line: 121, column: 46, }, end: Position { line: 121, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 121, column: 54, }, end: Position { line: 121, column: 59, }, }, }, ), ], span: Span { start: Position { line: 121, column: 53, }, end: Position { line: 121, column: 60, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 121, column: 62, }, end: Position { line: 121, column: 66, }, }, }, ), ], span: Span { start: Position { line: 121, column: 61, }, end: Position { line: 121, column: 67, }, }, }, ), ], span: Span { start: Position { line: 121, column: 44, }, end: Position { line: 121, column: 69, }, }, }, ), ], }, ), span: Span { start: Position { line: 121, column: 26, }, end: Position { line: 121, column: 69, }, }, }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 121, column: 73, }, end: Position { line: 121, column: 74, }, }, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 121, column: 78, }, end: Position { line: 121, column: 80, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 121, column: 23, }, end: Position { line: 121, column: 80, }, }, }, ), span: Span { start: Position { line: 121, column: 20, }, end: Position { line: 121, column: 80, }, }, }, ), BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs'", span: Span { start: Position { line: 122, column: 10, }, end: Position { line: 122, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "mapPathOptToSetting", span: Span { start: Position { line: 122, column: 20, }, end: Position { line: 122, column: 39, }, }, }, ), Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 122, column: 40, }, end: Position { line: 122, column: 48, }, }, }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "su", span: Span { start: Position { line: 124, column: 11, }, end: Position { line: 124, column: 13, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 125, column: 16, }, end: Position { line: 125, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 125, column: 25, }, end: Position { line: 125, column: 29, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 125, column: 33, }, end: Position { line: 125, column: 37, }, }, }, ), }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 126, column: 21, }, end: Position { line: 126, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 126, column: 30, }, end: Position { line: 126, column: 34, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 126, column: 19, }, end: Position { line: 126, column: 36, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 126, column: 38, }, end: Position { line: 126, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 126, column: 47, }, end: Position { line: 126, column: 52, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 126, column: 18, }, end: Position { line: 126, column: 54, }, }, }, ), else_: Identifier( Identifier { id: "null", span: Span { start: Position { line: 127, column: 18, }, end: Position { line: 127, column: 22, }, }, }, ), span: Span { start: Position { line: 125, column: 13, }, end: Position { line: 127, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 123, column: 9, }, end: Position { line: 128, column: 10, }, }, }, ), }, ), ], }, ), ], }, ), span: Span { start: Position { line: 119, column: 30, }, end: Position { line: 130, column: 6, }, }, }, ), span: Span { start: Position { line: 119, column: 24, }, end: Position { line: 130, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 132, column: 3, }, end: Position { line: 132, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "sortProperties", span: Span { start: Position { line: 132, column: 14, }, end: Position { line: 132, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 132, column: 30, }, end: Position { line: 132, column: 40, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterAttrs", span: Span { start: Position { line: 132, column: 42, }, end: Position { line: 132, column: 53, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "settings", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settings", span: Span { start: Position { line: 132, column: 68, }, end: Position { line: 132, column: 76, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 132, column: 77, }, end: Position { line: 132, column: 83, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 132, column: 58, }, end: Position { line: 132, column: 83, }, }, }, ), span: Span { start: Position { line: 132, column: 55, }, end: Position { line: 132, column: 83, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldAttrs", span: Span { start: Position { line: 133, column: 5, }, end: Position { line: 133, column: 14, }, }, }, ), arguments: [ Identifier( Identifier { id: "recursiveUpdate", span: Span { start: Position { line: 133, column: 15, }, end: Position { line: 133, column: 30, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 133, column: 31, }, end: Position { line: 133, column: 34, }, }, }, ), List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "header", span: Span { start: Position { line: 135, column: 9, }, end: Position { line: 135, column: 15, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 136, column: 11, }, end: Position { line: 136, column: 17, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 136, column: 20, }, end: Position { line: 136, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "missingok", span: Span { start: Position { line: 137, column: 11, }, end: Position { line: 137, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 137, column: 23, }, end: Position { line: 137, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "notifempty", span: Span { start: Position { line: 138, column: 11, }, end: Position { line: 138, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 138, column: 24, }, end: Position { line: 138, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "frequency", span: Span { start: Position { line: 139, column: 11, }, end: Position { line: 139, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "weekly", span: Span { start: Position { line: 139, column: 24, }, end: Position { line: 139, column: 30, }, }, }, ), ], span: Span { start: Position { line: 139, column: 23, }, end: Position { line: 139, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rotate", span: Span { start: Position { line: 140, column: 11, }, end: Position { line: 140, column: 17, }, }, }, ), ], to: Integer( Integer { value: "4", span: Span { start: Position { line: 140, column: 20, }, end: Position { line: 140, column: 21, }, }, }, ), }, ), ], span: Span { start: Position { line: 135, column: 18, }, end: Position { line: 141, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 143, column: 9, }, end: Position { line: 143, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 144, column: 11, }, end: Position { line: 144, column: 17, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 144, column: 21, }, end: Position { line: 144, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 144, column: 25, }, end: Position { line: 144, column: 36, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 144, column: 40, }, end: Position { line: 144, column: 42, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "global", span: Span { start: Position { line: 145, column: 11, }, end: Position { line: 145, column: 17, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 145, column: 20, }, end: Position { line: 145, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 146, column: 11, }, end: Position { line: 146, column: 22, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 146, column: 25, }, end: Position { line: 146, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 146, column: 29, }, end: Position { line: 146, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 147, column: 11, }, end: Position { line: 147, column: 19, }, }, }, ), ], to: Integer( Integer { value: "101", span: Span { start: Position { line: 147, column: 22, }, end: Position { line: 147, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 143, column: 23, }, end: Position { line: 148, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 134, column: 7, }, end: Position { line: 149, column: 8, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs'", span: Span { start: Position { line: 150, column: 8, }, end: Position { line: 150, column: 17, }, }, }, ), arguments: [ Identifier( Identifier { id: "mapPathsToSettings", span: Span { start: Position { line: 150, column: 18, }, end: Position { line: 150, column: 36, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 150, column: 37, }, end: Position { line: 150, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "paths", span: Span { start: Position { line: 150, column: 41, }, end: Position { line: 150, column: 46, }, }, }, ), ], default: None, }, ), ], }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 151, column: 7, }, end: Position { line: 151, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 151, column: 11, }, end: Position { line: 151, column: 19, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "header", span: Span { start: Position { line: 152, column: 9, }, end: Position { line: 152, column: 15, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "global", span: Span { start: Position { line: 152, column: 20, }, end: Position { line: 152, column: 26, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 152, column: 29, }, end: Position { line: 152, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 152, column: 35, }, end: Position { line: 152, column: 43, }, }, }, ), ], to: Integer( Integer { value: "100", span: Span { start: Position { line: 152, column: 46, }, end: Position { line: 152, column: 49, }, }, }, ), }, ), ], span: Span { start: Position { line: 152, column: 18, }, end: Position { line: 152, column: 52, }, }, }, ), }, ), ], span: Span { start: Position { line: 152, column: 7, }, end: Position { line: 152, column: 55, }, }, }, ), ], span: Span { start: Position { line: 133, column: 35, }, end: Position { line: 153, column: 6, }, }, }, ), ], }, ), ], }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 155, column: 3, }, end: Position { line: 155, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 155, column: 16, }, end: Position { line: 155, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeTextFile", span: Span { start: Position { line: 155, column: 21, }, end: Position { line: 155, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 156, column: 5, }, end: Position { line: 156, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "logrotate.conf", span: Span { start: Position { line: 156, column: 13, }, end: Position { line: 156, column: 27, }, }, }, ), ], span: Span { start: Position { line: 156, column: 12, }, end: Position { line: 156, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 157, column: 5, }, end: Position { line: 157, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 157, column: 12, }, end: Position { line: 157, column: 28, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 157, column: 30, }, end: Position { line: 157, column: 32, }, }, }, ), ], span: Span { start: Position { line: 157, column: 29, }, end: Position { line: 157, column: 33, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 158, column: 7, }, end: Position { line: 158, column: 10, }, }, }, ), arguments: [ Identifier( Identifier { id: "mkConf", span: Span { start: Position { line: 158, column: 11, }, end: Position { line: 158, column: 17, }, }, }, ), Identifier( Identifier { id: "settings", span: Span { start: Position { line: 158, column: 18, }, end: Position { line: 158, column: 26, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "checkPhase", span: Span { start: Position { line: 160, column: 5, }, end: Position { line: 160, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 160, column: 18, }, end: Position { line: 160, column: 32, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 160, column: 33, }, end: Position { line: 160, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "checkConfig", span: Span { start: Position { line: 160, column: 37, }, end: Position { line: 160, column: 48, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# logrotate --debug also checks that users specified in config\n# file exist, but we only have sandboxed users here so brown these\n# out. according to man page that means su, create and createolddir.\n# files required to exist also won't be present, so missingok is forced.\nuser=$(", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 165, column: 14, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 165, column: 16, }, end: Position { line: 165, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPackages", span: Span { start: Position { line: 165, column: 21, }, end: Position { line: 165, column: 34, }, }, }, ), Raw( PartRaw { content: "coreutils", span: Span { start: Position { line: 165, column: 35, }, end: Position { line: 165, column: 44, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/id -un)\ngroup=$(", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 166, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 166, column: 17, }, end: Position { line: 166, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPackages", span: Span { start: Position { line: 166, column: 22, }, end: Position { line: 166, column: 35, }, }, }, ), Raw( PartRaw { content: "coreutils", span: Span { start: Position { line: 166, column: 36, }, end: Position { line: 166, column: 45, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/id -gn)\nsed -e \"s/\\bsu\\s.*/su $user $group/\" \\\n -e \"s/\\b\\(create\\s\\+[0-9]*\\s*\\|createolddir\\s\\+[0-9]*\\s\\+\\).*/\\1$user $group/\" \\\n -e \"1imissingok\" -e \"s/\\bnomissingok\\b//\" \\\n $out > logrotate.conf\n# Since this makes for very verbose builds only show real error.\n# There is no way to control log level, but logrotate hardcodes\n# 'error:' at common log level, so we can use grep, taking care\n# to keep error codes\nset -o pipefail\nif ! ", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 176, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 176, column: 14, }, end: Position { line: 176, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPackages", span: Span { start: Position { line: 176, column: 19, }, end: Position { line: 176, column: 32, }, }, }, ), Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 176, column: 33, }, end: Position { line: 176, column: 42, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/logrotate -s logrotate.status \\\n --debug logrotate.conf 2>&1 \\\n | ( ! grep \"error:\" ) > logrotate-error; then\n echo \"Logrotate configuration check failed.\"\n echo \"The failing configuration (after adjustments to pass tests in sandbox) was:\"\n printf \"%s\\n\" \"-------\"\n cat logrotate.conf\n printf \"%s\\n\" \"-------\"\n echo \"The error reported by logrotate was as follow:\"\n printf \"%s\\n\" \"-------\"\n cat logrotate-error\n printf \"%s\\n\" \"-------\"\n echo \"You can disable this check with services.logrotate.checkConfig = false,\"\n echo \"but if you think it should work please report this failure along with\"\n echo \"the config file being tested!\"\n false\nfi\n", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 193, column: 5, }, }, }, ), ], span: Span { start: Position { line: 160, column: 49, }, end: Position { line: 193, column: 7, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 155, column: 35, }, end: Position { line: 194, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mailOption", span: Span { start: Position { line: 196, column: 3, }, end: Position { line: 196, column: 13, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldr", span: Span { start: Position { line: 197, column: 8, }, end: Position { line: 197, column: 13, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "a", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "a", span: Span { start: Position { line: 197, column: 21, }, end: Position { line: 197, column: 22, }, }, }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 197, column: 27, }, end: Position { line: 197, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mail", span: Span { start: Position { line: 197, column: 29, }, end: Position { line: 197, column: 33, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 197, column: 37, }, end: Position { line: 197, column: 42, }, }, }, ), ), }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "false", span: Span { start: Position { line: 197, column: 47, }, end: Position { line: 197, column: 52, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 197, column: 18, }, end: Position { line: 197, column: 52, }, }, }, ), span: Span { start: Position { line: 197, column: 15, }, end: Position { line: 197, column: 52, }, }, }, ), Identifier( Identifier { id: "false", span: Span { start: Position { line: 197, column: 54, }, end: Position { line: 197, column: 59, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 197, column: 61, }, end: Position { line: 197, column: 71, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 197, column: 72, }, end: Position { line: 197, column: 75, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 197, column: 76, }, end: Position { line: 197, column: 84, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "--mail=", span: Span { start: Position { line: 198, column: 11, }, end: Position { line: 198, column: 35, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 198, column: 20, }, end: Position { line: 198, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mailutils", span: Span { start: Position { line: 198, column: 25, }, end: Position { line: 198, column: 34, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mail", span: Span { start: Position { line: 198, column: 11, }, end: Position { line: 198, column: 44, }, }, }, ), ], span: Span { start: Position { line: 198, column: 10, }, end: Position { line: 198, column: 45, }, }, }, ), else_: String( String_ { parts: [], span: Span { start: Position { line: 199, column: 10, }, end: Position { line: 199, column: 12, }, }, }, ), span: Span { start: Position { line: 197, column: 5, }, end: Position { line: 199, column: 12, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 202, column: 3, }, end: Position { line: 202, column: 10, }, }, }, ), ], to: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkRenamedOptionModule", span: Span { start: Position { line: 203, column: 6, }, end: Position { line: 203, column: 27, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 203, column: 31, }, end: Position { line: 203, column: 39, }, }, }, ), ], span: Span { start: Position { line: 203, column: 30, }, end: Position { line: 203, column: 40, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 203, column: 42, }, end: Position { line: 203, column: 51, }, }, }, ), ], span: Span { start: Position { line: 203, column: 41, }, end: Position { line: 203, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 203, column: 54, }, end: Position { line: 203, column: 60, }, }, }, ), ], span: Span { start: Position { line: 203, column: 53, }, end: Position { line: 203, column: 61, }, }, }, ), ], span: Span { start: Position { line: 203, column: 28, }, end: Position { line: 203, column: 63, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 203, column: 67, }, end: Position { line: 203, column: 75, }, }, }, ), ], span: Span { start: Position { line: 203, column: 66, }, end: Position { line: 203, column: 76, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 203, column: 78, }, end: Position { line: 203, column: 87, }, }, }, ), ], span: Span { start: Position { line: 203, column: 77, }, end: Position { line: 203, column: 88, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 203, column: 90, }, end: Position { line: 203, column: 101, }, }, }, ), ], span: Span { start: Position { line: 203, column: 89, }, end: Position { line: 203, column: 102, }, }, }, ), ], span: Span { start: Position { line: 203, column: 64, }, end: Position { line: 203, column: 104, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 202, column: 13, }, end: Position { line: 204, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 206, column: 3, }, end: Position { line: 206, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 207, column: 5, }, end: Position { line: 207, column: 13, }, }, }, ), Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 207, column: 14, }, end: Position { line: 207, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 208, column: 7, }, end: Position { line: 208, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 208, column: 16, }, end: Position { line: 208, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 208, column: 32, }, end: Position { line: 208, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 208, column: 36, }, end: Position { line: 208, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "the logrotate systemd service", span: Span { start: Position { line: 208, column: 43, }, end: Position { line: 208, column: 72, }, }, }, ), ], span: Span { start: Position { line: 208, column: 42, }, end: Position { line: 208, column: 73, }, }, }, ), ], }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 209, column: 9, }, end: Position { line: 209, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldr", span: Span { start: Position { line: 209, column: 19, }, end: Position { line: 209, column: 24, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "a", }, ), body: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "a", span: Span { start: Position { line: 209, column: 32, }, end: Position { line: 209, column: 33, }, }, }, ), operator: LogicalOr, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 209, column: 37, }, end: Position { line: 209, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 209, column: 39, }, end: Position { line: 209, column: 45, }, }, }, ), ], default: None, }, ), }, ), span: Span { start: Position { line: 209, column: 29, }, end: Position { line: 209, column: 45, }, }, }, ), span: Span { start: Position { line: 209, column: 26, }, end: Position { line: 209, column: 45, }, }, }, ), Identifier( Identifier { id: "false", span: Span { start: Position { line: 209, column: 47, }, end: Position { line: 209, column: 52, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrValues", span: Span { start: Position { line: 209, column: 54, }, end: Position { line: 209, column: 64, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 209, column: 65, }, end: Position { line: 209, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 209, column: 69, }, end: Position { line: 209, column: 77, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 210, column: 9, }, end: Position { line: 210, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 210, column: 23, }, end: Position { line: 210, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "cfg.settings != {}", span: Span { start: Position { line: 210, column: 42, }, end: Position { line: 210, column: 60, }, }, }, ), ], span: Span { start: Position { line: 210, column: 41, }, end: Position { line: 210, column: 61, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 208, column: 78, }, end: Position { line: 211, column: 8, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 213, column: 7, }, end: Position { line: 213, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 213, column: 18, }, end: Position { line: 213, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 214, column: 9, }, end: Position { line: 214, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 214, column: 19, }, end: Position { line: 214, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 215, column: 9, }, end: Position { line: 215, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 215, column: 23, }, end: Position { line: 215, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 215, column: 27, }, end: Position { line: 215, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "logrotate freeform settings: each attribute here will define its own section,\nordered by priority, which can either define files to rotate with their settings\nor settings common to all further files settings.\nRefer to for details.\n", span: Span { start: Position { line: 216, column: 1, }, end: Position { line: 220, column: 9, }, }, }, ), ], span: Span { start: Position { line: 215, column: 33, }, end: Position { line: 220, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 221, column: 9, }, end: Position { line: 221, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 221, column: 16, }, end: Position { line: 221, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsOf", span: Span { start: Position { line: 221, column: 22, }, end: Position { line: 221, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 221, column: 31, }, end: Position { line: 221, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 221, column: 37, }, end: Position { line: 221, column: 46, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "name", default: None, }, ], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "freeformType", span: Span { start: Position { line: 222, column: 11, }, end: Position { line: 222, column: 23, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 222, column: 31, }, end: Position { line: 222, column: 36, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 222, column: 38, }, end: Position { line: 222, column: 45, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 222, column: 47, }, end: Position { line: 222, column: 53, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "oneOf", span: Span { start: Position { line: 222, column: 55, }, end: Position { line: 222, column: 60, }, }, }, ), arguments: [ List( List { elements: [ Identifier( Identifier { id: "int", span: Span { start: Position { line: 222, column: 63, }, end: Position { line: 222, column: 66, }, }, }, ), Identifier( Identifier { id: "bool", span: Span { start: Position { line: 222, column: 67, }, end: Position { line: 222, column: 71, }, }, }, ), Identifier( Identifier { id: "str", span: Span { start: Position { line: 222, column: 72, }, end: Position { line: 222, column: 75, }, }, }, ), ], span: Span { start: Position { line: 222, column: 61, }, end: Position { line: 222, column: 77, }, }, }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 222, column: 26, }, end: Position { line: 222, column: 79, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 224, column: 11, }, end: Position { line: 224, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 225, column: 13, }, end: Position { line: 225, column: 19, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 225, column: 22, }, end: Position { line: 225, column: 36, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 225, column: 38, }, end: Position { line: 225, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 225, column: 42, }, end: Position { line: 225, column: 47, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "setting individual kill switch", span: Span { start: Position { line: 225, column: 49, }, end: Position { line: 225, column: 79, }, }, }, ), ], span: Span { start: Position { line: 225, column: 48, }, end: Position { line: 225, column: 80, }, }, }, ), ], }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 226, column: 15, }, end: Position { line: 226, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 226, column: 25, }, end: Position { line: 226, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 225, column: 85, }, end: Position { line: 227, column: 14, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "global", span: Span { start: Position { line: 229, column: 13, }, end: Position { line: 229, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 229, column: 22, }, end: Position { line: 229, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 230, column: 15, }, end: Position { line: 230, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 230, column: 22, }, end: Position { line: 230, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 230, column: 28, }, end: Position { line: 230, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 231, column: 15, }, end: Position { line: 231, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 231, column: 25, }, end: Position { line: 231, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 232, column: 15, }, end: Position { line: 232, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 232, column: 29, }, end: Position { line: 232, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 232, column: 33, }, end: Position { line: 232, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether this setting is a global option or not: set to have these\nsettings apply to all files settings with a higher priority.\n", span: Span { start: Position { line: 233, column: 1, }, end: Position { line: 235, column: 15, }, }, }, ), ], span: Span { start: Position { line: 232, column: 39, }, end: Position { line: 235, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 229, column: 31, }, end: Position { line: 236, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "files", span: Span { start: Position { line: 237, column: 13, }, end: Position { line: 237, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 237, column: 21, }, end: Position { line: 237, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 238, column: 15, }, end: Position { line: 238, column: 19, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 238, column: 27, }, end: Position { line: 238, column: 32, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "either", span: Span { start: Position { line: 238, column: 34, }, end: Position { line: 238, column: 40, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 238, column: 41, }, end: Position { line: 238, column: 44, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 238, column: 46, }, end: Position { line: 238, column: 52, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 238, column: 53, }, end: Position { line: 238, column: 56, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 238, column: 22, }, end: Position { line: 238, column: 57, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 239, column: 15, }, end: Position { line: 239, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "name", span: Span { start: Position { line: 239, column: 25, }, end: Position { line: 239, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 240, column: 15, }, end: Position { line: 240, column: 26, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The attrset name if not specified\n", span: Span { start: Position { line: 241, column: 1, }, end: Position { line: 242, column: 15, }, }, }, ), ], span: Span { start: Position { line: 240, column: 29, }, end: Position { line: 242, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 243, column: 15, }, end: Position { line: 243, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 243, column: 29, }, end: Position { line: 243, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 243, column: 33, }, end: Position { line: 243, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Single or list of files for which rules are defined.\nThe files are quoted with double-quotes in logrotate configuration,\nso globs and spaces are supported.\nNote this setting is ignored if globals is true.\n", span: Span { start: Position { line: 244, column: 1, }, end: Position { line: 248, column: 15, }, }, }, ), ], span: Span { start: Position { line: 243, column: 39, }, end: Position { line: 248, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 237, column: 30, }, end: Position { line: 249, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "frequency", span: Span { start: Position { line: 251, column: 13, }, end: Position { line: 251, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 251, column: 25, }, end: Position { line: 251, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 252, column: 15, }, end: Position { line: 252, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 252, column: 22, }, end: Position { line: 252, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 252, column: 28, }, end: Position { line: 252, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 252, column: 35, }, end: Position { line: 252, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 252, column: 41, }, end: Position { line: 252, column: 44, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 253, column: 15, }, end: Position { line: 253, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 253, column: 25, }, end: Position { line: 253, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 254, column: 15, }, end: Position { line: 254, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 254, column: 29, }, end: Position { line: 254, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 254, column: 33, }, end: Position { line: 254, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "How often to rotate the logs. Defaults to previously set global setting,\nwhich itself defauts to weekly.\n", span: Span { start: Position { line: 255, column: 1, }, end: Position { line: 257, column: 15, }, }, }, ), ], span: Span { start: Position { line: 254, column: 39, }, end: Position { line: 257, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 251, column: 34, }, end: Position { line: 258, column: 14, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 260, column: 13, }, end: Position { line: 260, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 260, column: 24, }, end: Position { line: 260, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 261, column: 15, }, end: Position { line: 261, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 261, column: 22, }, end: Position { line: 261, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 261, column: 28, }, end: Position { line: 261, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 262, column: 15, }, end: Position { line: 262, column: 22, }, }, }, ), ], to: Integer( Integer { value: "1000", span: Span { start: Position { line: 262, column: 25, }, end: Position { line: 262, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 263, column: 15, }, end: Position { line: 263, column: 26, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 263, column: 29, }, end: Position { line: 263, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 263, column: 33, }, end: Position { line: 263, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Order of this logrotate block in relation to the others. The semantics are\nthe same as with `lib.mkOrder`. Smaller values are inserted first.\n", span: Span { start: Position { line: 264, column: 1, }, end: Position { line: 266, column: 15, }, }, }, ), ], span: Span { start: Position { line: 263, column: 39, }, end: Position { line: 266, column: 17, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 260, column: 33, }, end: Position { line: 267, column: 14, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 224, column: 21, }, end: Position { line: 268, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 221, column: 63, }, end: Position { line: 270, column: 10, }, }, }, ), span: Span { start: Position { line: 221, column: 48, }, end: Position { line: 270, column: 10, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 213, column: 27, }, end: Position { line: 271, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 273, column: 7, }, end: Position { line: 273, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 273, column: 20, }, end: Position { line: 273, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 274, column: 9, }, end: Position { line: 274, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 274, column: 16, }, end: Position { line: 274, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 274, column: 22, }, end: Position { line: 274, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 275, column: 9, }, end: Position { line: 275, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 275, column: 19, }, end: Position { line: 275, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 276, column: 9, }, end: Position { line: 276, column: 20, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A configuration file automatically generated by NixOS.\n", span: Span { start: Position { line: 277, column: 1, }, end: Position { line: 278, column: 9, }, }, }, ), ], span: Span { start: Position { line: 276, column: 23, }, end: Position { line: 278, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 279, column: 9, }, end: Position { line: 279, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 279, column: 23, }, end: Position { line: 279, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 279, column: 27, }, end: Position { line: 279, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Override the configuration file used by MySQL. By default,\nNixOS generates one automatically from [](#opt-services.logrotate.settings).\n", span: Span { start: Position { line: 280, column: 1, }, end: Position { line: 282, column: 9, }, }, }, ), ], span: Span { start: Position { line: 279, column: 33, }, end: Position { line: 282, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 283, column: 9, }, end: Position { line: 283, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 283, column: 19, }, end: Position { line: 283, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "pkgs.writeText \"logrotate.conf\" ", span: Span { start: Position { line: 284, column: 1, }, end: Position { line: 284, column: 43, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 284, column: 1, }, end: Position { line: 284, column: 46, }, }, }, ), Raw( PartRaw { content: "\n missingok\n \"/var/log/*.log\" {\n rotate 4\n weekly\n }\n", span: Span { start: Position { line: 284, column: 1, }, end: Position { line: 290, column: 11, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 284, column: 1, }, end: Position { line: 290, column: 14, }, }, }, ), Raw( PartRaw { content: ";\n", span: Span { start: Position { line: 284, column: 1, }, end: Position { line: 291, column: 9, }, }, }, ), ], span: Span { start: Position { line: 283, column: 37, }, end: Position { line: 291, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 273, column: 29, }, end: Position { line: 292, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "checkConfig", span: Span { start: Position { line: 294, column: 7, }, end: Position { line: 294, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 294, column: 21, }, end: Position { line: 294, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 295, column: 9, }, end: Position { line: 295, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 295, column: 16, }, end: Position { line: 295, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 295, column: 22, }, end: Position { line: 295, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 296, column: 9, }, end: Position { line: 296, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 296, column: 19, }, end: Position { line: 296, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 297, column: 9, }, end: Position { line: 297, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 297, column: 23, }, end: Position { line: 297, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 297, column: 27, }, end: Position { line: 297, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether the config should be checked at build time.\n\nSome options are not checkable at build time because of the build sandbox:\nfor example, the test does not know about existing files and system users are\nnot known.\nThese limitations mean we must adjust the file for tests (missingok is forced\nand users are replaced by dummy users), so tests are complemented by a\nlogrotate-checkconf service that is enabled by default.\nThis extra check can be disabled by disabling it at the systemd level with the\n{option}`services.systemd.services.logrotate-checkconf.enable` option.\n\nConversely there are still things that might make this check fail incorrectly\n(e.g. a file path where we don't have access to intermediate directories):\nin this case you can disable the failing check with this option.\n", span: Span { start: Position { line: 298, column: 1, }, end: Position { line: 312, column: 9, }, }, }, ), ], span: Span { start: Position { line: 297, column: 33, }, end: Position { line: 312, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 294, column: 30, }, end: Position { line: 313, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "paths", span: Span { start: Position { line: 316, column: 7, }, end: Position { line: 316, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 316, column: 15, }, end: Position { line: 316, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 317, column: 9, }, end: Position { line: 317, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 317, column: 21, }, end: Position { line: 317, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 317, column: 28, }, end: Position { line: 317, column: 35, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "submodule", span: Span { start: Position { line: 317, column: 37, }, end: Position { line: 317, column: 46, }, }, }, ), arguments: [ Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 317, column: 47, }, end: Position { line: 317, column: 55, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 317, column: 16, }, end: Position { line: 317, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 318, column: 9, }, end: Position { line: 318, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 318, column: 19, }, end: Position { line: 318, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 319, column: 9, }, end: Position { line: 319, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 319, column: 23, }, end: Position { line: 319, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 319, column: 27, }, end: Position { line: 319, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Attribute set of paths to rotate. The order each block appears in the generated configuration file\ncan be controlled by the [priority](#opt-services.logrotate.paths._name_.priority) option\nusing the same semantics as `lib.mkOrder`. Smaller values have a greater priority.\nThis setting has been deprecated in favor of [logrotate settings](#opt-services.logrotate.settings).\n", span: Span { start: Position { line: 320, column: 1, }, end: Position { line: 324, column: 9, }, }, }, ), ], span: Span { start: Position { line: 319, column: 33, }, end: Position { line: 324, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 325, column: 9, }, end: Position { line: 325, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 325, column: 19, }, end: Position { line: 325, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n httpd = {\n path = \"/var/log/httpd/*.log\";\n user = config.services.httpd.user;\n group = config.services.httpd.group;\n keep = 7;\n };\n\n myapp = {\n path = \"/var/log/myapp/*.log\";\n user = \"myuser\";\n group = \"mygroup\";\n frequency = \"weekly\";\n keep = 5;\n priority = 1;\n };\n}\n", span: Span { start: Position { line: 326, column: 1, }, end: Position { line: 343, column: 9, }, }, }, ), ], span: Span { start: Position { line: 325, column: 37, }, end: Position { line: 343, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 316, column: 24, }, end: Position { line: 344, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 346, column: 7, }, end: Position { line: 346, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 346, column: 21, }, end: Position { line: 346, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 347, column: 9, }, end: Position { line: 347, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 347, column: 19, }, end: Position { line: 347, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 348, column: 9, }, end: Position { line: 348, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 348, column: 16, }, end: Position { line: 348, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 348, column: 22, }, end: Position { line: 348, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 349, column: 9, }, end: Position { line: 349, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 349, column: 23, }, end: Position { line: 349, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 349, column: 27, }, end: Position { line: 349, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Extra contents to append to the logrotate configuration file. Refer to\n for details.\nThis setting has been deprecated in favor of\n[logrotate settings](#opt-services.logrotate.settings).\n", span: Span { start: Position { line: 350, column: 1, }, end: Position { line: 354, column: 9, }, }, }, ), ], span: Span { start: Position { line: 349, column: 33, }, end: Position { line: 354, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 346, column: 30, }, end: Position { line: 355, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 207, column: 26, }, end: Position { line: 356, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 206, column: 13, }, end: Position { line: 357, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 359, column: 3, }, end: Position { line: 359, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 359, column: 12, }, end: Position { line: 359, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 359, column: 17, }, end: Position { line: 359, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 359, column: 21, }, end: Position { line: 359, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 360, column: 5, }, end: Position { line: 360, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 361, column: 7, }, end: Position { line: 361, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pathOpts", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 364, column: 13, }, end: Position { line: 364, column: 22, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 364, column: 26, }, end: Position { line: 364, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 364, column: 35, }, end: Position { line: 364, column: 39, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 364, column: 43, }, end: Position { line: 364, column: 47, }, }, }, ), }, ), operator: EqualTo, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pathOpts", span: Span { start: Position { line: 364, column: 53, }, end: Position { line: 364, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 364, column: 62, }, end: Position { line: 364, column: 67, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 364, column: 71, }, end: Position { line: 364, column: 75, }, }, }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 365, column: 13, }, end: Position { line: 365, column: 20, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If either of `services.logrotate.paths.", span: Span { start: Position { line: 366, column: 1, }, end: Position { line: 366, column: 54, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 366, column: 56, }, end: Position { line: 366, column: 60, }, }, }, ), }, ), Raw( PartRaw { content: ".user` or `services.logrotate.paths.", span: Span { start: Position { line: 366, column: 1, }, end: Position { line: 366, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 366, column: 99, }, end: Position { line: 366, column: 103, }, }, }, ), }, ), Raw( PartRaw { content: ".group` are specified then *both* must be specified.\n", span: Span { start: Position { line: 366, column: 1, }, end: Position { line: 367, column: 13, }, }, }, ), ], span: Span { start: Position { line: 365, column: 23, }, end: Position { line: 367, column: 15, }, }, }, ), }, ), ], span: Span { start: Position { line: 363, column: 11, }, end: Position { line: 368, column: 12, }, }, }, ), span: Span { start: Position { line: 362, column: 16, }, end: Position { line: 368, column: 12, }, }, }, ), span: Span { start: Position { line: 362, column: 10, }, end: Position { line: 368, column: 12, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 369, column: 9, }, end: Position { line: 369, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "paths", span: Span { start: Position { line: 369, column: 13, }, end: Position { line: 369, column: 18, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "warnings", span: Span { start: Position { line: 371, column: 5, }, end: Position { line: 371, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 372, column: 8, }, end: Position { line: 372, column: 22, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pathOpts", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Using config.services.logrotate.paths.", span: Span { start: Position { line: 374, column: 1, }, end: Position { line: 374, column: 49, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 374, column: 51, }, end: Position { line: 374, column: 55, }, }, }, ), }, ), Raw( PartRaw { content: " is deprecated and will become unsupported in a future release.\nPlease use services.logrotate.settings instead.\n", span: Span { start: Position { line: 374, column: 1, }, end: Position { line: 376, column: 9, }, }, }, ), ], span: Span { start: Position { line: 373, column: 26, }, end: Position { line: 376, column: 11, }, }, }, ), span: Span { start: Position { line: 373, column: 16, }, end: Position { line: 376, column: 11, }, }, }, ), span: Span { start: Position { line: 373, column: 10, }, end: Position { line: 376, column: 11, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 377, column: 9, }, end: Position { line: 377, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "paths", span: Span { start: Position { line: 377, column: 13, }, end: Position { line: 377, column: 18, }, }, }, ), ], default: None, }, ), ], }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 379, column: 8, }, end: Position { line: 379, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 379, column: 18, }, end: Position { line: 379, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 379, column: 22, }, end: Position { line: 379, column: 33, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 379, column: 37, }, end: Position { line: 379, column: 39, }, }, }, ), }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Using config.services.logrotate.extraConfig is deprecated and will become unsupported in a future release.\nPlease use services.logrotate.settings with globals=true instead.\n", span: Span { start: Position { line: 380, column: 1, }, end: Position { line: 382, column: 7, }, }, }, ), ], span: Span { start: Position { line: 379, column: 41, }, end: Position { line: 382, column: 9, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 384, column: 5, }, end: Position { line: 384, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 384, column: 13, }, end: Position { line: 384, column: 21, }, }, }, ), Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 384, column: 22, }, end: Position { line: 384, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 385, column: 7, }, end: Position { line: 385, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Logrotate Service", span: Span { start: Position { line: 385, column: 22, }, end: Position { line: 385, column: 39, }, }, }, ), ], span: Span { start: Position { line: 385, column: 21, }, end: Position { line: 385, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "startAt", span: Span { start: Position { line: 386, column: 7, }, end: Position { line: 386, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hourly", span: Span { start: Position { line: 386, column: 18, }, end: Position { line: 386, column: 24, }, }, }, ), ], span: Span { start: Position { line: 386, column: 17, }, end: Position { line: 386, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 388, column: 7, }, end: Position { line: 388, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 389, column: 9, }, end: Position { line: 389, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "no", span: Span { start: Position { line: 389, column: 20, }, end: Position { line: 389, column: 22, }, }, }, ), ], span: Span { start: Position { line: 389, column: 19, }, end: Position { line: 389, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 390, column: 9, }, end: Position { line: 390, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 390, column: 17, }, end: Position { line: 390, column: 21, }, }, }, ), ], span: Span { start: Position { line: 390, column: 16, }, end: Position { line: 390, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 391, column: 9, }, end: Position { line: 391, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 391, column: 24, }, end: Position { line: 391, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 391, column: 29, }, end: Position { line: 391, column: 38, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/logrotate ", span: Span { start: Position { line: 391, column: 22, }, end: Position { line: 391, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mailOption", span: Span { start: Position { line: 391, column: 57, }, end: Position { line: 391, column: 67, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 391, column: 22, }, end: Position { line: 391, column: 69, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 391, column: 71, }, end: Position { line: 391, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 391, column: 75, }, end: Position { line: 391, column: 85, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 391, column: 21, }, end: Position { line: 391, column: 87, }, }, }, ), }, ), ], span: Span { start: Position { line: 388, column: 23, }, end: Position { line: 392, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 384, column: 34, }, end: Position { line: 393, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 394, column: 5, }, end: Position { line: 394, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 394, column: 13, }, end: Position { line: 394, column: 21, }, }, }, ), Raw( PartRaw { content: "logrotate-checkconf", span: Span { start: Position { line: 394, column: 22, }, end: Position { line: 394, column: 41, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 395, column: 7, }, end: Position { line: 395, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Logrotate configuration check", span: Span { start: Position { line: 395, column: 22, }, end: Position { line: 395, column: 51, }, }, }, ), ], span: Span { start: Position { line: 395, column: 21, }, end: Position { line: 395, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 396, column: 7, }, end: Position { line: 396, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 396, column: 21, }, end: Position { line: 396, column: 38, }, }, }, ), ], span: Span { start: Position { line: 396, column: 20, }, end: Position { line: 396, column: 39, }, }, }, ), ], span: Span { start: Position { line: 396, column: 18, }, end: Position { line: 396, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 397, column: 7, }, end: Position { line: 397, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 398, column: 9, }, end: Position { line: 398, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 398, column: 17, }, end: Position { line: 398, column: 24, }, }, }, ), ], span: Span { start: Position { line: 398, column: 16, }, end: Position { line: 398, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RemainAfterExit", span: Span { start: Position { line: 399, column: 9, }, end: Position { line: 399, column: 24, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 399, column: 27, }, end: Position { line: 399, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 400, column: 9, }, end: Position { line: 400, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 400, column: 24, }, end: Position { line: 400, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "logrotate", span: Span { start: Position { line: 400, column: 29, }, end: Position { line: 400, column: 38, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/logrotate --debug ", span: Span { start: Position { line: 400, column: 22, }, end: Position { line: 400, column: 63, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 400, column: 65, }, end: Position { line: 400, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 400, column: 69, }, end: Position { line: 400, column: 79, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 400, column: 21, }, end: Position { line: 400, column: 81, }, }, }, ), }, ), ], span: Span { start: Position { line: 397, column: 23, }, end: Position { line: 401, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 394, column: 44, }, end: Position { line: 402, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 359, column: 28, }, end: Position { line: 403, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 201, column: 1, }, end: Position { line: 404, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 404, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 404, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 404, column: 2, }, }, }, )