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: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 7, column: 12, }, end: Position { line: 7, column: 16, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "mariadb", span: Span { start: Position { line: 7, column: 18, }, end: Position { line: 7, column: 25, }, }, }, ), Raw( PartRaw { content: "gzip", span: Span { start: Position { line: 7, column: 26, }, end: Position { line: 7, column: 30, }, }, }, ), ], span: Span { start: Position { line: 5, column: 4, }, end: Position { line: 7, column: 31, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 9, column: 9, }, end: Position { line: 9, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 24, }, }, }, ), Raw( PartRaw { content: "mysqlBackup", span: Span { start: Position { line: 9, column: 25, }, end: Position { line: 9, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultUser", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mysqlbackup", span: Span { start: Position { line: 10, column: 18, }, end: Position { line: 10, column: 29, }, }, }, ), ], span: Span { start: Position { line: 10, column: 17, }, end: Position { line: 10, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "backupScript", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 15, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "set -o pipefail\nfailed=\"\"\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 15, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 15, column: 28, }, end: Position { line: 15, column: 30, }, }, }, ), ], span: Span { start: Position { line: 15, column: 27, }, end: Position { line: 15, column: 31, }, }, }, ), Identifier( Identifier { id: "backupDatabaseScript", span: Span { start: Position { line: 15, column: 32, }, end: Position { line: 15, column: 52, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 15, column: 53, }, end: Position { line: 15, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "databases", span: Span { start: Position { line: 15, column: 57, }, end: Position { line: 15, column: 66, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nif [ -n \"$failed\" ]; then\n echo \"Backup of database(s) failed:$failed\"\n exit 1\nfi\n", span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 20, column: 3, }, }, }, ), ], span: Span { start: Position { line: 12, column: 18, }, end: Position { line: 20, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "backupDatabaseScript", span: Span { start: Position { line: 21, column: 3, }, end: Position { line: 21, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "db", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "dest=\"", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 22, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 22, column: 13, }, end: Position { line: 22, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 22, column: 25, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 22, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "db", span: Span { start: Position { line: 22, column: 29, }, end: Position { line: 22, column: 31, }, }, }, ), }, ), Raw( PartRaw { content: ".gz\"\nif ", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 8, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mariadb", span: Span { start: Position { line: 23, column: 10, }, end: Position { line: 23, column: 17, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/mysqldump ", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 33, }, }, }, ), Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 23, column: 38, }, end: Position { line: 23, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "singleTransaction", span: Span { start: Position { line: 23, column: 42, }, end: Position { line: 23, column: 59, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "--single-transaction", span: Span { start: Position { line: 23, column: 66, }, end: Position { line: 23, column: 86, }, }, }, ), ], span: Span { start: Position { line: 23, column: 65, }, end: Position { line: 23, column: 87, }, }, }, ), else_: String( String_ { parts: [], span: Span { start: Position { line: 23, column: 93, }, end: Position { line: 23, column: 95, }, }, }, ), span: Span { start: Position { line: 23, column: 35, }, end: Position { line: 23, column: 95, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "db", span: Span { start: Position { line: 23, column: 99, }, end: Position { line: 23, column: 101, }, }, }, ), }, ), Raw( PartRaw { content: " | ", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 105, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "gzip", span: Span { start: Position { line: 23, column: 107, }, end: Position { line: 23, column: 111, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/gzip -c > $dest.tmp; then\n mv $dest.tmp $dest\n echo \"Backed up to $dest\"\nelse\n echo \"Failed to back up to $dest\"\n rm -f $dest.tmp\n failed=\"$failed ", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 29, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "db", span: Span { start: Position { line: 29, column: 25, }, end: Position { line: 29, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "\"\nfi\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 31, column: 3, }, }, }, ), ], span: Span { start: Position { line: 21, column: 30, }, end: Position { line: 31, column: 5, }, }, }, ), span: Span { start: Position { line: 21, column: 26, }, end: Position { line: 31, column: 5, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 36, column: 3, }, end: Position { line: 36, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 13, }, }, }, ), Raw( PartRaw { content: "mysqlBackup", span: Span { start: Position { line: 38, column: 14, }, end: Position { line: 38, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 36, }, end: Position { line: 40, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "MySQL backups", span: Span { start: Position { line: 40, column: 43, }, end: Position { line: 40, column: 56, }, }, }, ), ], span: Span { start: Position { line: 40, column: 42, }, end: Position { line: 40, column: 57, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "calendar", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 42, column: 18, }, end: Position { line: 42, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 43, column: 16, }, end: Position { line: 43, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "01:15:00", span: Span { start: Position { line: 44, column: 20, }, end: Position { line: 44, column: 28, }, }, }, ), ], span: Span { start: Position { line: 44, column: 19, }, end: Position { line: 44, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 45, column: 23, }, end: Position { line: 45, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Configured when to run the backup service systemd unit (DayOfWeek Year-Month-Day Hour:Minute:Second).\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 47, column: 9, }, }, }, ), ], span: Span { start: Position { line: 45, column: 33, }, end: Position { line: 47, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 42, column: 27, }, end: Position { line: 48, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 50, column: 14, }, end: Position { line: 50, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 51, column: 16, }, end: Position { line: 51, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "defaultUser", span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 53, column: 23, }, end: Position { line: 53, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 53, column: 27, }, end: Position { line: 53, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "User to be used to perform backup.\n", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 55, column: 9, }, }, }, ), ], span: Span { start: Position { line: 53, column: 33, }, end: Position { line: 55, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 56, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "databases", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 58, column: 19, }, end: Position { line: 58, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 59, column: 9, }, end: Position { line: 59, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 59, column: 19, }, end: Position { line: 59, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 60, column: 9, }, end: Position { line: 60, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 60, column: 16, }, end: Position { line: 60, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 60, column: 22, }, end: Position { line: 60, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 60, column: 29, }, end: Position { line: 60, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 60, column: 35, }, end: Position { line: 60, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 61, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 61, column: 23, }, end: Position { line: 61, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 61, column: 27, }, end: Position { line: 61, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "List of database names to dump.\n", span: Span { start: Position { line: 62, column: 1, }, end: Position { line: 63, column: 9, }, }, }, ), ], span: Span { start: Position { line: 61, column: 33, }, end: Position { line: 63, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 58, column: 28, }, end: Position { line: 64, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 66, column: 7, }, end: Position { line: 66, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 66, column: 18, }, end: Position { line: 66, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 67, column: 9, }, end: Position { line: 67, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 67, column: 16, }, end: Position { line: 67, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 67, column: 22, }, end: Position { line: 67, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 68, column: 9, }, end: Position { line: 68, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/backup/mysql", span: Span { start: Position { line: 68, column: 20, }, end: Position { line: 68, column: 37, }, }, }, ), ], span: Span { start: Position { line: 68, column: 19, }, end: Position { line: 68, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 69, column: 9, }, end: Position { line: 69, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 69, column: 23, }, end: Position { line: 69, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 69, column: 27, }, end: Position { line: 69, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Location to put the gzipped MySQL database dumps.\n", span: Span { start: Position { line: 70, column: 1, }, end: Position { line: 71, column: 9, }, }, }, ), ], span: Span { start: Position { line: 69, column: 33, }, end: Position { line: 71, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 66, column: 27, }, end: Position { line: 72, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "singleTransaction", span: Span { start: Position { line: 74, column: 7, }, end: Position { line: 74, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 74, column: 27, }, end: Position { line: 74, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 75, column: 19, }, end: Position { line: 75, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 76, column: 9, }, end: Position { line: 76, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 76, column: 16, }, end: Position { line: 76, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 76, column: 22, }, end: Position { line: 76, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 77, column: 9, }, end: Position { line: 77, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 77, column: 23, }, end: Position { line: 77, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 77, column: 27, }, end: Position { line: 77, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to create database dump in a single transaction\n", span: Span { start: Position { line: 78, column: 1, }, end: Position { line: 79, column: 9, }, }, }, ), ], span: Span { start: Position { line: 77, column: 33, }, end: Position { line: 79, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 74, column: 36, }, end: Position { line: 80, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 81, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 36, column: 13, }, end: Position { line: 83, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 85, column: 3, }, end: Position { line: 85, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 85, column: 12, }, end: Position { line: 85, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 85, column: 17, }, end: Position { line: 85, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 85, column: 21, }, end: Position { line: 85, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 86, column: 5, }, end: Position { line: 86, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 86, column: 11, }, end: Position { line: 86, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 86, column: 19, }, end: Position { line: 86, column: 32, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 86, column: 34, }, end: Position { line: 86, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 86, column: 38, }, end: Position { line: 86, column: 42, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "defaultUser", span: Span { start: Position { line: 86, column: 46, }, end: Position { line: 86, column: 57, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "defaultUser", span: Span { start: Position { line: 87, column: 9, }, end: Position { line: 87, column: 20, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 88, column: 9, }, end: Position { line: 88, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 88, column: 24, }, end: Position { line: 88, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "createHome", span: Span { start: Position { line: 89, column: 9, }, end: Position { line: 89, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 89, column: 22, }, end: Position { line: 89, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "home", span: Span { start: Position { line: 90, column: 9, }, end: Position { line: 90, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 90, column: 16, }, end: Position { line: 90, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 90, column: 20, }, end: Position { line: 90, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 91, column: 9, }, end: Position { line: 91, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nogroup", span: Span { start: Position { line: 91, column: 18, }, end: Position { line: 91, column: 25, }, }, }, ), ], span: Span { start: Position { line: 91, column: 17, }, end: Position { line: 91, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 87, column: 24, }, end: Position { line: 92, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 86, column: 59, }, end: Position { line: 93, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 95, column: 5, }, end: Position { line: 95, column: 13, }, }, }, ), Raw( PartRaw { content: "mysql", span: Span { start: Position { line: 95, column: 14, }, end: Position { line: 95, column: 19, }, }, }, ), Raw( PartRaw { content: "ensureUsers", span: Span { start: Position { line: 95, column: 20, }, end: Position { line: 95, column: 31, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 96, column: 7, }, end: Position { line: 96, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 96, column: 14, }, end: Position { line: 96, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 96, column: 18, }, end: Position { line: 96, column: 22, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ensurePermissions", span: Span { start: Position { line: 97, column: 7, }, end: Position { line: 97, column: 24, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 97, column: 32, }, end: Position { line: 97, column: 35, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "privs", span: Span { start: Position { line: 99, column: 11, }, end: Position { line: 99, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "SELECT, SHOW VIEW, TRIGGER, LOCK TABLES", span: Span { start: Position { line: 99, column: 20, }, end: Position { line: 99, column: 59, }, }, }, ), ], span: Span { start: Position { line: 99, column: 19, }, end: Position { line: 99, column: 60, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "grant", span: Span { start: Position { line: 100, column: 11, }, end: Position { line: 100, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "db", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 100, column: 23, }, end: Position { line: 100, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "db", span: Span { start: Position { line: 100, column: 40, }, end: Position { line: 100, column: 42, }, }, }, ), }, ), Raw( PartRaw { content: ".*", span: Span { start: Position { line: 100, column: 38, }, end: Position { line: 100, column: 45, }, }, }, ), ], span: Span { start: Position { line: 100, column: 37, }, end: Position { line: 100, column: 46, }, }, }, ), Identifier( Identifier { id: "privs", span: Span { start: Position { line: 100, column: 47, }, end: Position { line: 100, column: 52, }, }, }, ), ], }, ), span: Span { start: Position { line: 100, column: 19, }, end: Position { line: 100, column: 52, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 102, column: 11, }, end: Position { line: 102, column: 22, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 102, column: 24, }, end: Position { line: 102, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "grant", span: Span { start: Position { line: 102, column: 28, }, end: Position { line: 102, column: 33, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 102, column: 34, }, end: Position { line: 102, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "databases", span: Span { start: Position { line: 102, column: 38, }, end: Position { line: 102, column: 47, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 98, column: 9, }, end: Position { line: 102, column: 48, }, }, }, ), span: Span { start: Position { line: 97, column: 27, }, end: Position { line: 102, column: 48, }, }, }, ), }, ), ], span: Span { start: Position { line: 95, column: 35, }, end: Position { line: 103, column: 6, }, }, }, ), ], span: Span { start: Position { line: 95, column: 34, }, end: Position { line: 103, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 105, column: 5, }, end: Position { line: 105, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "timers", span: Span { start: Position { line: 106, column: 7, }, end: Position { line: 106, column: 13, }, }, }, ), Raw( PartRaw { content: "mysql-backup", span: Span { start: Position { line: 106, column: 14, }, end: Position { line: 106, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 107, column: 9, }, end: Position { line: 107, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Mysql backup timer", span: Span { start: Position { line: 107, column: 24, }, end: Position { line: 107, column: 42, }, }, }, ), ], span: Span { start: Position { line: 107, column: 23, }, end: Position { line: 107, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 108, column: 9, }, end: Position { line: 108, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "timers.target", span: Span { start: Position { line: 108, column: 23, }, end: Position { line: 108, column: 36, }, }, }, ), ], span: Span { start: Position { line: 108, column: 22, }, end: Position { line: 108, column: 37, }, }, }, ), ], span: Span { start: Position { line: 108, column: 20, }, end: Position { line: 108, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "timerConfig", span: Span { start: Position { line: 109, column: 9, }, end: Position { line: 109, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "OnCalendar", span: Span { start: Position { line: 110, column: 11, }, end: Position { line: 110, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 110, column: 24, }, end: Position { line: 110, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "calendar", span: Span { start: Position { line: 110, column: 28, }, end: Position { line: 110, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "AccuracySec", span: Span { start: Position { line: 111, column: 11, }, end: Position { line: 111, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "5m", span: Span { start: Position { line: 111, column: 26, }, end: Position { line: 111, column: 28, }, }, }, ), ], span: Span { start: Position { line: 111, column: 25, }, end: Position { line: 111, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Unit", span: Span { start: Position { line: 112, column: 11, }, end: Position { line: 112, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "mysql-backup.service", span: Span { start: Position { line: 112, column: 19, }, end: Position { line: 112, column: 39, }, }, }, ), ], span: Span { start: Position { line: 112, column: 18, }, end: Position { line: 112, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 109, column: 23, }, end: Position { line: 113, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 106, column: 29, }, end: Position { line: 114, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 115, column: 7, }, end: Position { line: 115, column: 15, }, }, }, ), Raw( PartRaw { content: "mysql-backup", span: Span { start: Position { line: 115, column: 16, }, end: Position { line: 115, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 116, column: 9, }, end: Position { line: 116, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "MySQL backup service", span: Span { start: Position { line: 116, column: 24, }, end: Position { line: 116, column: 44, }, }, }, ), ], span: Span { start: Position { line: 116, column: 23, }, end: Position { line: 116, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 117, column: 9, }, end: Position { line: 117, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 117, column: 18, }, end: Position { line: 117, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 118, column: 9, }, end: Position { line: 118, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 119, column: 11, }, end: Position { line: 119, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 119, column: 19, }, end: Position { line: 119, column: 26, }, }, }, ), ], span: Span { start: Position { line: 119, column: 18, }, end: Position { line: 119, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 120, column: 11, }, end: Position { line: 120, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 120, column: 18, }, end: Position { line: 120, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 120, column: 22, }, end: Position { line: 120, column: 26, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 118, column: 25, }, end: Position { line: 121, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 122, column: 9, }, end: Position { line: 122, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "backupScript", span: Span { start: Position { line: 122, column: 18, }, end: Position { line: 122, column: 30, }, }, }, ), }, ), ], span: Span { start: Position { line: 115, column: 31, }, end: Position { line: 123, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "tmpfiles", span: Span { start: Position { line: 124, column: 7, }, end: Position { line: 124, column: 15, }, }, }, ), Raw( PartRaw { content: "rules", span: Span { start: Position { line: 124, column: 16, }, end: Position { line: 124, column: 21, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "d ", span: Span { start: Position { line: 125, column: 10, }, end: Position { line: 125, column: 27, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 125, column: 14, }, end: Position { line: 125, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "location", span: Span { start: Position { line: 125, column: 18, }, end: Position { line: 125, column: 26, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " 0700 ", span: Span { start: Position { line: 125, column: 10, }, end: Position { line: 125, column: 33, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 125, column: 35, }, end: Position { line: 125, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 125, column: 39, }, end: Position { line: 125, column: 43, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " - - -", span: Span { start: Position { line: 125, column: 10, }, end: Position { line: 125, column: 50, }, }, }, ), ], span: Span { start: Position { line: 125, column: 9, }, end: Position { line: 125, column: 51, }, }, }, ), ], span: Span { start: Position { line: 124, column: 24, }, end: Position { line: 126, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 105, column: 15, }, end: Position { line: 127, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 85, column: 28, }, end: Position { line: 128, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 35, column: 1, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 130, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 130, column: 2, }, }, }, )