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: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "zramSwap", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "devicesCount", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 15, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 11, column: 21, }, end: Position { line: 11, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 11, column: 25, }, end: Position { line: 11, column: 36, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 11, column: 40, }, end: Position { line: 11, column: 44, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 11, column: 50, }, end: Position { line: 11, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 11, column: 54, }, end: Position { line: 11, column: 65, }, }, }, ), ], default: None, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 11, column: 71, }, end: Position { line: 11, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 11, column: 75, }, end: Position { line: 11, column: 85, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 11, column: 18, }, end: Position { line: 11, column: 85, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 13, column: 3, }, end: Position { line: 13, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 13, column: 13, }, end: Position { line: 13, column: 16, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "nr", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "zram", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 41, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 13, column: 29, }, end: Position { line: 13, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "nr", span: Span { start: Position { line: 13, column: 38, }, end: Position { line: 13, column: 40, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 22, }, end: Position { line: 13, column: 42, }, }, }, ), span: Span { start: Position { line: 13, column: 18, }, end: Position { line: 13, column: 42, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "range", span: Span { start: Position { line: 13, column: 45, }, end: Position { line: 13, column: 50, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 13, column: 51, }, end: Position { line: 13, column: 52, }, }, }, ), BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "devicesCount", span: Span { start: Position { line: 13, column: 54, }, end: Position { line: 13, column: 66, }, }, }, ), operator: Subtraction, right: Integer( Integer { value: "1", span: Span { start: Position { line: 13, column: 69, }, end: Position { line: 13, column: 70, }, }, }, ), }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "modprobe", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kmod", span: Span { start: Position { line: 15, column: 22, }, end: Position { line: 15, column: 26, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/modprobe", span: Span { start: Position { line: 15, column: 15, }, end: Position { line: 15, column: 40, }, }, }, ), ], span: Span { start: Position { line: 15, column: 14, }, end: Position { line: 15, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "warnings", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 11, }, }, }, ), ], to: Assert( Assert { expression: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 18, column: 10, }, end: Position { line: 18, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 18, column: 14, }, end: Position { line: 18, column: 25, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 18, column: 29, }, end: Position { line: 18, column: 33, }, }, }, ), }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 18, column: 37, }, end: Position { line: 18, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 18, column: 41, }, end: Position { line: 18, column: 51, }, }, }, ), ], default: None, }, ), operator: GreaterThanOrEqualTo, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 18, column: 55, }, end: Position { line: 18, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 18, column: 59, }, end: Position { line: 18, column: 70, }, }, }, ), ], default: None, }, ), }, ), }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "flatten", span: Span { start: Position { line: 19, column: 3, }, end: Position { line: 19, column: 10, }, }, }, ), arguments: [ List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 20, column: 6, }, end: Position { line: 20, column: 14, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 20, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 20, column: 20, }, end: Position { line: 20, column: 30, }, }, }, ), ], default: None, }, ), operator: GreaterThan, right: Integer( Integer { value: "1", span: Span { start: Position { line: 20, column: 33, }, end: Position { line: 20, column: 34, }, }, }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 20, column: 38, }, end: Position { line: 20, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 20, column: 42, }, end: Position { line: 20, column: 53, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 20, column: 57, }, end: Position { line: 20, column: 61, }, }, }, ), }, ), }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Using several small zram devices as swap is no better than using one large.\nSet either zramSwap.numDevices = 1 or explicitly set zramSwap.swapDevices.\n\nPreviously multiple zram devices were used to enable multithreaded\ncompression. Linux supports multithreaded compression for 1 device\nsince 3.15. See https://lkml.org/lkml/2014/2/28/404 for details.\n", span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 27, column: 5, }, }, }, ), ], span: Span { start: Position { line: 20, column: 63, }, end: Position { line: 27, column: 7, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 19, column: 11, }, end: Position { line: 28, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 18, column: 3, }, end: Position { line: 28, column: 4, }, }, }, ), }, ), ], 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: "zramSwap", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 13, }, }, }, ), ], 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: "mkOption", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 42, column: 16, }, end: Position { line: 42, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 42, column: 22, }, end: Position { line: 42, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 43, column: 23, }, end: Position { line: 43, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 43, column: 27, }, end: Position { line: 43, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enable in-memory compressed devices and swap space provided by the zram\nkernel module.\nSee [\n https://www.kernel.org/doc/Documentation/blockdev/zram.txt\n](https://www.kernel.org/doc/Documentation/blockdev/zram.txt).\n", span: Span { start: Position { line: 44, column: 1, }, end: Position { line: 49, column: 9, }, }, }, ), ], span: Span { start: Position { line: 43, column: 33, }, end: Position { line: 49, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 40, column: 25, }, end: Position { line: 50, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 16, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 53, column: 19, }, end: Position { line: 53, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 54, column: 16, }, end: Position { line: 54, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 54, column: 22, }, end: Position { line: 54, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 55, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 55, column: 27, }, end: Position { line: 55, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Number of zram devices to create. See also\n`zramSwap.swapDevices`\n", span: Span { start: Position { line: 56, column: 1, }, end: Position { line: 58, column: 9, }, }, }, ), ], span: Span { start: Position { line: 55, column: 33, }, end: Position { line: 58, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 52, column: 29, }, end: Position { line: 59, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 61, column: 21, }, end: Position { line: 61, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 62, column: 9, }, end: Position { line: 62, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 62, column: 19, }, end: Position { line: 62, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 16, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 63, column: 19, }, end: Position { line: 63, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 64, column: 21, }, end: Position { line: 64, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 64, column: 28, }, end: Position { line: 64, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "int", span: Span { start: Position { line: 64, column: 35, }, end: Position { line: 64, column: 38, }, }, }, ), ], }, ), span: Span { start: Position { line: 64, column: 16, }, end: Position { line: 64, column: 38, }, }, }, ), }, ), 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: "Number of zram devices to be used as swap. Must be\n`<= zramSwap.numDevices`.\nDefault is same as `zramSwap.numDevices`, recommended is 1.\n", span: Span { start: Position { line: 66, column: 1, }, end: Position { line: 69, column: 9, }, }, }, ), ], span: Span { start: Position { line: 65, column: 33, }, end: Position { line: 69, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 61, column: 30, }, end: Position { line: 70, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "memoryPercent", span: Span { start: Position { line: 72, column: 7, }, end: Position { line: 72, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 72, column: 23, }, end: Position { line: 72, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 73, column: 9, }, end: Position { line: 73, column: 16, }, }, }, ), ], to: Integer( Integer { value: "50", span: Span { start: Position { line: 73, column: 19, }, end: Position { line: 73, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 74, column: 9, }, end: Position { line: 74, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 74, column: 16, }, end: Position { line: 74, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 74, column: 22, }, end: Position { line: 74, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 75, column: 23, }, end: Position { line: 75, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 75, column: 27, }, end: Position { line: 75, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Maximum total amount of memory that can be stored in the zram swap devices\n(as a percentage of your total memory). Defaults to 1/2 of your total\nRAM. Run `zramctl` to check how good memory is compressed.\nThis doesn't define how much memory will be used by the zram swap devices.\n", span: Span { start: Position { line: 76, column: 1, }, end: Position { line: 80, column: 9, }, }, }, ), ], span: Span { start: Position { line: 75, column: 33, }, end: Position { line: 80, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 72, column: 32, }, end: Position { line: 81, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "memoryMax", span: Span { start: Position { line: 83, column: 7, }, end: Position { line: 83, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 83, column: 19, }, end: Position { line: 83, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 84, column: 9, }, end: Position { line: 84, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 84, column: 19, }, end: Position { line: 84, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 85, column: 9, }, end: Position { line: 85, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 85, column: 21, }, end: Position { line: 85, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nullOr", span: Span { start: Position { line: 85, column: 28, }, end: Position { line: 85, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "int", span: Span { start: Position { line: 85, column: 35, }, end: Position { line: 85, column: 38, }, }, }, ), ], }, ), span: Span { start: Position { line: 85, column: 16, }, end: Position { line: 85, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 86, column: 23, }, end: Position { line: 86, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 86, column: 27, }, end: Position { line: 86, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Maximum total amount of memory (in bytes) that can be stored in the zram\nswap devices.\nThis doesn't define how much memory will be used by the zram swap devices.\n", span: Span { start: Position { line: 87, column: 1, }, end: Position { line: 90, column: 9, }, }, }, ), ], span: Span { start: Position { line: 86, column: 33, }, end: Position { line: 90, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 83, column: 28, }, end: Position { line: 91, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 93, column: 18, }, end: Position { line: 93, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 94, column: 9, }, end: Position { line: 94, column: 16, }, }, }, ), ], to: Integer( Integer { value: "5", span: Span { start: Position { line: 94, column: 19, }, end: Position { line: 94, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 95, column: 9, }, end: Position { line: 95, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 95, column: 16, }, end: Position { line: 95, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 95, column: 22, }, end: Position { line: 95, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 96, column: 9, }, end: Position { line: 96, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 96, column: 23, }, end: Position { line: 96, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 96, column: 27, }, end: Position { line: 96, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Priority of the zram swap devices. It should be a number higher than\nthe priority of your disk-based swap devices (so that the system will\nfill the zram swap devices before falling back to disk swap).\n", span: Span { start: Position { line: 97, column: 1, }, end: Position { line: 100, column: 9, }, }, }, ), ], span: Span { start: Position { line: 96, column: 33, }, end: Position { line: 100, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 93, column: 27, }, end: Position { line: 101, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "algorithm", span: Span { start: Position { line: 103, column: 7, }, end: Position { line: 103, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 103, column: 19, }, end: Position { line: 103, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 104, column: 9, }, end: Position { line: 104, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "zstd", span: Span { start: Position { line: 104, column: 20, }, end: Position { line: 104, column: 24, }, }, }, ), ], span: Span { start: Position { line: 104, column: 19, }, end: Position { line: 104, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 105, column: 9, }, end: Position { line: 105, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "lz4", span: Span { start: Position { line: 105, column: 20, }, end: Position { line: 105, column: 23, }, }, }, ), ], span: Span { start: Position { line: 105, column: 19, }, end: Position { line: 105, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 106, column: 9, }, end: Position { line: 106, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 106, column: 21, }, end: Position { line: 106, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "either", span: Span { start: Position { line: 106, column: 28, }, end: Position { line: 106, column: 34, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "enum", span: Span { start: Position { line: 106, column: 36, }, end: Position { line: 106, column: 40, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "lzo", span: Span { start: Position { line: 106, column: 44, }, end: Position { line: 106, column: 47, }, }, }, ), ], span: Span { start: Position { line: 106, column: 43, }, end: Position { line: 106, column: 48, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "lz4", span: Span { start: Position { line: 106, column: 50, }, end: Position { line: 106, column: 53, }, }, }, ), ], span: Span { start: Position { line: 106, column: 49, }, end: Position { line: 106, column: 54, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "zstd", span: Span { start: Position { line: 106, column: 56, }, end: Position { line: 106, column: 60, }, }, }, ), ], span: Span { start: Position { line: 106, column: 55, }, end: Position { line: 106, column: 61, }, }, }, ), ], span: Span { start: Position { line: 106, column: 41, }, end: Position { line: 106, column: 63, }, }, }, ), ], }, ), Identifier( Identifier { id: "str", span: Span { start: Position { line: 106, column: 65, }, end: Position { line: 106, column: 68, }, }, }, ), ], }, ), span: Span { start: Position { line: 106, column: 16, }, end: Position { line: 106, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 107, column: 9, }, end: Position { line: 107, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 107, column: 23, }, end: Position { line: 107, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 107, column: 27, }, end: Position { line: 107, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Compression algorithm. `lzo` has good compression,\nbut is slow. `lz4` has bad compression, but is fast.\n`zstd` is both good compression and fast, but requires newer kernel.\nYou can check what other algorithms are supported by your zram device with\n{command}`cat /sys/class/block/zram*/comp_algorithm`\n", span: Span { start: Position { line: 108, column: 1, }, end: Position { line: 113, column: 9, }, }, }, ), ], span: Span { start: Position { line: 107, column: 33, }, end: Position { line: 113, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 103, column: 28, }, end: Position { line: 114, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 38, column: 16, }, end: Position { line: 115, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 36, column: 13, }, end: Position { line: 117, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 119, column: 3, }, end: Position { line: 119, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 119, column: 12, }, end: Position { line: 119, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 119, column: 17, }, end: Position { line: 119, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 119, column: 21, }, end: Position { line: 119, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "warnings", span: Span { start: Position { line: 121, column: 13, }, end: Position { line: 121, column: 21, }, }, }, ), ], span: Span { start: Position { line: 119, column: 29, }, end: Position { line: 121, column: 22, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 123, column: 5, }, end: Position { line: 123, column: 11, }, }, }, ), Raw( PartRaw { content: "requiredKernelConfig", span: Span { start: Position { line: 123, column: 12, }, end: Position { line: 123, column: 32, }, }, }, ), ], to: With( With { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 123, column: 40, }, end: Position { line: 123, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 123, column: 47, }, end: Position { line: 123, column: 50, }, }, }, ), Raw( PartRaw { content: "kernelConfig", span: Span { start: Position { line: 123, column: 51, }, end: Position { line: 123, column: 63, }, }, }, ), ], default: None, }, ), target: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isModule", span: Span { start: Position { line: 124, column: 8, }, end: Position { line: 124, column: 16, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "ZRAM", span: Span { start: Position { line: 124, column: 18, }, end: Position { line: 124, column: 22, }, }, }, ), ], span: Span { start: Position { line: 124, column: 17, }, end: Position { line: 124, column: 23, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 123, column: 65, }, end: Position { line: 125, column: 6, }, }, }, ), span: Span { start: Position { line: 123, column: 35, }, end: Position { line: 125, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 131, column: 5, }, end: Position { line: 131, column: 9, }, }, }, ), Raw( PartRaw { content: "extraModprobeConfig", span: Span { start: Position { line: 131, column: 10, }, end: Position { line: 131, column: 29, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "options zram num_devices=", span: Span { start: Position { line: 132, column: 1, }, end: Position { line: 132, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 132, column: 34, }, end: Position { line: 132, column: 42, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 132, column: 43, }, end: Position { line: 132, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 132, column: 47, }, end: Position { line: 132, column: 57, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 132, column: 1, }, end: Position { line: 133, column: 5, }, }, }, ), ], span: Span { start: Position { line: 131, column: 32, }, end: Position { line: 133, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 135, column: 5, }, end: Position { line: 135, column: 13, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 135, column: 14, }, end: Position { line: 135, column: 18, }, }, }, ), Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 135, column: 19, }, end: Position { line: 135, column: 29, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "KERNEL==\"zram[0-9]*\", ENV{SYSTEMD_WANTS}=\"zram-init-%k.service\", TAG+=\"systemd\"\n", span: Span { start: Position { line: 136, column: 1, }, end: Position { line: 137, column: 5, }, }, }, ), ], span: Span { start: Position { line: 135, column: 32, }, end: Position { line: 137, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 139, column: 5, }, end: Position { line: 139, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 139, column: 13, }, end: Position { line: 139, column: 21, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "createZramInitService", span: Span { start: Position { line: 141, column: 9, }, end: Position { line: 141, column: 30, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "dev", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 142, column: 11, }, end: Position { line: 142, column: 24, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "zram-init-", span: Span { start: Position { line: 142, column: 26, }, end: Position { line: 142, column: 42, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 142, column: 38, }, end: Position { line: 142, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 142, column: 25, }, end: Position { line: 142, column: 43, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 143, column: 13, }, end: Position { line: 143, column: 24, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Init swap on zram-based device ", span: Span { start: Position { line: 143, column: 28, }, end: Position { line: 143, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 143, column: 61, }, end: Position { line: 143, column: 64, }, }, }, ), }, ), ], span: Span { start: Position { line: 143, column: 27, }, end: Position { line: 143, column: 66, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 144, column: 13, }, end: Position { line: 144, column: 18, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dev-", span: Span { start: Position { line: 144, column: 24, }, end: Position { line: 144, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 144, column: 30, }, end: Position { line: 144, column: 33, }, }, }, ), }, ), Raw( PartRaw { content: ".device", span: Span { start: Position { line: 144, column: 24, }, end: Position { line: 144, column: 41, }, }, }, ), ], span: Span { start: Position { line: 144, column: 23, }, end: Position { line: 144, column: 42, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "zram-reloader.service", span: Span { start: Position { line: 144, column: 44, }, end: Position { line: 144, column: 65, }, }, }, ), ], span: Span { start: Position { line: 144, column: 43, }, end: Position { line: 144, column: 66, }, }, }, ), ], span: Span { start: Position { line: 144, column: 21, }, end: Position { line: 144, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "requires", span: Span { start: Position { line: 145, column: 13, }, end: Position { line: 145, column: 21, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dev-", span: Span { start: Position { line: 145, column: 27, }, end: Position { line: 145, column: 37, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 145, column: 33, }, end: Position { line: 145, column: 36, }, }, }, ), }, ), Raw( PartRaw { content: ".device", span: Span { start: Position { line: 145, column: 27, }, end: Position { line: 145, column: 44, }, }, }, ), ], span: Span { start: Position { line: 145, column: 26, }, end: Position { line: 145, column: 45, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "zram-reloader.service", span: Span { start: Position { line: 145, column: 47, }, end: Position { line: 145, column: 68, }, }, }, ), ], span: Span { start: Position { line: 145, column: 46, }, end: Position { line: 145, column: 69, }, }, }, ), ], span: Span { start: Position { line: 145, column: 24, }, end: Position { line: 145, column: 71, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "before", span: Span { start: Position { line: 146, column: 13, }, end: Position { line: 146, column: 19, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dev-", span: Span { start: Position { line: 146, column: 25, }, end: Position { line: 146, column: 35, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 146, column: 31, }, end: Position { line: 146, column: 34, }, }, }, ), }, ), Raw( PartRaw { content: ".swap", span: Span { start: Position { line: 146, column: 25, }, end: Position { line: 146, column: 40, }, }, }, ), ], span: Span { start: Position { line: 146, column: 24, }, end: Position { line: 146, column: 41, }, }, }, ), ], span: Span { start: Position { line: 146, column: 22, }, end: Position { line: 146, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "requiredBy", span: Span { start: Position { line: 147, column: 13, }, end: Position { line: 147, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "dev-", span: Span { start: Position { line: 147, column: 29, }, end: Position { line: 147, column: 39, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 147, column: 35, }, end: Position { line: 147, column: 38, }, }, }, ), }, ), Raw( PartRaw { content: ".swap", span: Span { start: Position { line: 147, column: 29, }, end: Position { line: 147, column: 44, }, }, }, ), ], span: Span { start: Position { line: 147, column: 28, }, end: Position { line: 147, column: 45, }, }, }, ), ], span: Span { start: Position { line: 147, column: 26, }, end: Position { line: 147, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unitConfig", span: Span { start: Position { line: 148, column: 13, }, end: Position { line: 148, column: 23, }, }, }, ), Raw( PartRaw { content: "DefaultDependencies", span: Span { start: Position { line: 148, column: 24, }, end: Position { line: 148, column: 43, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 148, column: 46, }, end: Position { line: 148, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 149, column: 13, }, end: Position { line: 149, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 150, column: 15, }, end: Position { line: 150, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 150, column: 23, }, end: Position { line: 150, column: 30, }, }, }, ), ], span: Span { start: Position { line: 150, column: 22, }, end: Position { line: 150, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RemainAfterExit", span: Span { start: Position { line: 151, column: 15, }, end: Position { line: 151, column: 30, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 151, column: 33, }, end: Position { line: 151, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStop", span: Span { start: Position { line: 152, column: 15, }, end: Position { line: 152, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 152, column: 29, }, end: Position { line: 152, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runtimeShell", span: Span { start: Position { line: 152, column: 34, }, end: Position { line: 152, column: 46, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " -c 'echo 1 > /sys/class/block/", span: Span { start: Position { line: 152, column: 27, }, end: Position { line: 152, column: 78, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 152, column: 80, }, end: Position { line: 152, column: 83, }, }, }, ), }, ), Raw( PartRaw { content: "/reset'", span: Span { start: Position { line: 152, column: 27, }, end: Position { line: 152, column: 91, }, }, }, ), ], span: Span { start: Position { line: 152, column: 26, }, end: Position { line: 152, column: 92, }, }, }, ), }, ), ], span: Span { start: Position { line: 149, column: 29, }, end: Position { line: 153, column: 14, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 154, column: 13, }, end: Position { line: 154, column: 19, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "set -euo pipefail\n\n# Calculate memory to use for zram\nmem=$(", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 158, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 158, column: 23, }, end: Position { line: 158, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gawk", span: Span { start: Position { line: 158, column: 28, }, end: Position { line: 158, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/awk '/MemTotal: / {\n value=int($2*", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 159, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 159, column: 34, }, end: Position { line: 159, column: 42, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 159, column: 43, }, end: Position { line: 159, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "memoryPercent", span: Span { start: Position { line: 159, column: 47, }, end: Position { line: 159, column: 60, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "/100.0/", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 159, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 159, column: 70, }, end: Position { line: 159, column: 78, }, }, }, ), arguments: [ Identifier( Identifier { id: "devicesCount", span: Span { start: Position { line: 159, column: 79, }, end: Position { line: 159, column: 91, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "*1024);\n ", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 160, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 160, column: 23, }, end: Position { line: 160, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "optionalString", span: Span { start: Position { line: 160, column: 27, }, end: Position { line: 160, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 160, column: 43, }, end: Position { line: 160, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "memoryMax", span: Span { start: Position { line: 160, column: 47, }, end: Position { line: 160, column: 56, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 160, column: 60, }, end: Position { line: 160, column: 64, }, }, }, ), }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "memory_max=int(", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 161, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 161, column: 40, }, end: Position { line: 161, column: 48, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 161, column: 49, }, end: Position { line: 161, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "memoryMax", span: Span { start: Position { line: 161, column: 53, }, end: Position { line: 161, column: 62, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 161, column: 64, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 161, column: 66, }, end: Position { line: 161, column: 74, }, }, }, ), arguments: [ Identifier( Identifier { id: "devicesCount", span: Span { start: Position { line: 161, column: 75, }, end: Position { line: 161, column: 87, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: ");\nif (value > memory_max) { value = memory_max }\n", span: Span { start: Position { line: 161, column: 1, }, end: Position { line: 163, column: 21, }, }, }, ), ], span: Span { start: Position { line: 160, column: 66, }, end: Position { line: 163, column: 23, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n print value\n}' /proc/meminfo)\n\n", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 167, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 167, column: 17, }, end: Position { line: 167, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "util-linux", span: Span { start: Position { line: 167, column: 22, }, end: Position { line: 167, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/zramctl --size $mem --algorithm ", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 167, column: 71, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 167, column: 73, }, end: Position { line: 167, column: 76, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "algorithm", span: Span { start: Position { line: 167, column: 77, }, end: Position { line: 167, column: 86, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " /dev/", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 167, column: 93, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 167, column: 95, }, end: Position { line: 167, column: 98, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 168, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 168, column: 17, }, end: Position { line: 168, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "util-linux", span: Span { start: Position { line: 168, column: 22, }, end: Position { line: 168, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/mkswap /dev/", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 168, column: 51, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 168, column: 53, }, end: Position { line: 168, column: 56, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 155, column: 1, }, end: Position { line: 169, column: 13, }, }, }, ), ], span: Span { start: Position { line: 154, column: 22, }, end: Position { line: 169, column: 15, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartIfChanged", span: Span { start: Position { line: 170, column: 13, }, end: Position { line: 170, column: 29, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 170, column: 32, }, end: Position { line: 170, column: 37, }, }, }, ), }, ), ], span: Span { start: Position { line: 142, column: 44, }, end: Position { line: 171, column: 12, }, }, }, ), ], }, ), span: Span { start: Position { line: 141, column: 33, }, end: Position { line: 171, column: 12, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listToAttrs", span: Span { start: Position { line: 172, column: 10, }, end: Position { line: 172, column: 21, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 172, column: 24, }, end: Position { line: 172, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "createZramInitService", span: Span { start: Position { line: 172, column: 28, }, end: Position { line: 172, column: 49, }, }, }, ), Identifier( Identifier { id: "devices", span: Span { start: Position { line: 172, column: 50, }, end: Position { line: 172, column: 57, }, }, }, ), ], }, ), operator: Concatenation, right: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 172, column: 64, }, end: Position { line: 172, column: 77, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "zram-reloader", span: Span { start: Position { line: 172, column: 79, }, end: Position { line: 172, column: 92, }, }, }, ), ], span: Span { start: Position { line: 172, column: 78, }, end: Position { line: 172, column: 93, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 174, column: 11, }, end: Position { line: 174, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Reload zram kernel module when number of devices changes", span: Span { start: Position { line: 174, column: 26, }, end: Position { line: 174, column: 82, }, }, }, ), ], span: Span { start: Position { line: 174, column: 25, }, end: Position { line: 174, column: 83, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wants", span: Span { start: Position { line: 175, column: 11, }, end: Position { line: 175, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "systemd-udevd.service", span: Span { start: Position { line: 175, column: 22, }, end: Position { line: 175, column: 43, }, }, }, ), ], span: Span { start: Position { line: 175, column: 21, }, end: Position { line: 175, column: 44, }, }, }, ), ], span: Span { start: Position { line: 175, column: 19, }, end: Position { line: 175, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 176, column: 11, }, end: Position { line: 176, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "systemd-udevd.service", span: Span { start: Position { line: 176, column: 22, }, end: Position { line: 176, column: 43, }, }, }, ), ], span: Span { start: Position { line: 176, column: 21, }, end: Position { line: 176, column: 44, }, }, }, ), ], span: Span { start: Position { line: 176, column: 19, }, end: Position { line: 176, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unitConfig", span: Span { start: Position { line: 177, column: 11, }, end: Position { line: 177, column: 21, }, }, }, ), Raw( PartRaw { content: "DefaultDependencies", span: Span { start: Position { line: 177, column: 22, }, end: Position { line: 177, column: 41, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 177, column: 44, }, end: Position { line: 177, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 178, column: 11, }, end: Position { line: 178, column: 24, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 179, column: 13, }, end: Position { line: 179, column: 17, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 179, column: 21, }, end: Position { line: 179, column: 28, }, }, }, ), ], span: Span { start: Position { line: 179, column: 20, }, end: Position { line: 179, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RemainAfterExit", span: Span { start: Position { line: 180, column: 13, }, end: Position { line: 180, column: 28, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 180, column: 31, }, end: Position { line: 180, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStartPre", span: Span { start: Position { line: 181, column: 13, }, end: Position { line: 181, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "modprobe", span: Span { start: Position { line: 181, column: 31, }, end: Position { line: 181, column: 39, }, }, }, ), }, ), Raw( PartRaw { content: " -r zram", span: Span { start: Position { line: 181, column: 29, }, end: Position { line: 181, column: 48, }, }, }, ), ], span: Span { start: Position { line: 181, column: 28, }, end: Position { line: 181, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 182, column: 13, }, end: Position { line: 182, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "modprobe", span: Span { start: Position { line: 182, column: 28, }, end: Position { line: 182, column: 36, }, }, }, ), }, ), Raw( PartRaw { content: " zram", span: Span { start: Position { line: 182, column: 26, }, end: Position { line: 182, column: 42, }, }, }, ), ], span: Span { start: Position { line: 182, column: 25, }, end: Position { line: 182, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStop", span: Span { start: Position { line: 183, column: 13, }, end: Position { line: 183, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "modprobe", span: Span { start: Position { line: 183, column: 27, }, end: Position { line: 183, column: 35, }, }, }, ), }, ), Raw( PartRaw { content: " -r zram", span: Span { start: Position { line: 183, column: 25, }, end: Position { line: 183, column: 44, }, }, }, ), ], span: Span { start: Position { line: 183, column: 24, }, end: Position { line: 183, column: 45, }, }, }, ), }, ), ], span: Span { start: Position { line: 178, column: 27, }, end: Position { line: 184, column: 12, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartTriggers", span: Span { start: Position { line: 185, column: 11, }, end: Position { line: 185, column: 26, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 186, column: 13, }, end: Position { line: 186, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "numDevices", span: Span { start: Position { line: 186, column: 17, }, end: Position { line: 186, column: 27, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 187, column: 13, }, end: Position { line: 187, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "algorithm", span: Span { start: Position { line: 187, column: 17, }, end: Position { line: 187, column: 26, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 188, column: 13, }, end: Position { line: 188, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "memoryPercent", span: Span { start: Position { line: 188, column: 17, }, end: Position { line: 188, column: 30, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 185, column: 29, }, end: Position { line: 189, column: 12, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartIfChanged", span: Span { start: Position { line: 190, column: 11, }, end: Position { line: 190, column: 27, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 190, column: 30, }, end: Position { line: 190, column: 34, }, }, }, ), }, ), ], span: Span { start: Position { line: 173, column: 9, }, end: Position { line: 191, column: 10, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 172, column: 62, }, end: Position { line: 191, column: 12, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 140, column: 7, }, end: Position { line: 191, column: 13, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "swapDevices", span: Span { start: Position { line: 193, column: 5, }, end: Position { line: 193, column: 16, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "useZramSwap", span: Span { start: Position { line: 195, column: 9, }, end: Position { line: 195, column: 20, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "dev", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "device", span: Span { start: Position { line: 197, column: 13, }, end: Position { line: 197, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/dev/", span: Span { start: Position { line: 197, column: 23, }, end: Position { line: 197, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 197, column: 30, }, end: Position { line: 197, column: 33, }, }, }, ), }, ), ], span: Span { start: Position { line: 197, column: 22, }, end: Position { line: 197, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 198, column: 13, }, end: Position { line: 198, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 198, column: 24, }, end: Position { line: 198, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 198, column: 28, }, end: Position { line: 198, column: 36, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 196, column: 11, }, end: Position { line: 199, column: 12, }, }, }, ), span: Span { start: Position { line: 195, column: 23, }, end: Position { line: 199, column: 12, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 200, column: 10, }, end: Position { line: 200, column: 13, }, }, }, ), arguments: [ Identifier( Identifier { id: "useZramSwap", span: Span { start: Position { line: 200, column: 14, }, end: Position { line: 200, column: 25, }, }, }, ), Identifier( Identifier { id: "devices", span: Span { start: Position { line: 200, column: 26, }, end: Position { line: 200, column: 33, }, }, }, ), ], }, ), span: Span { start: Position { line: 194, column: 7, }, end: Position { line: 200, column: 33, }, }, }, ), }, ), ], span: Span { start: Position { line: 119, column: 28, }, end: Position { line: 202, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 32, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 204, column: 2, }, }, }, )