Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", 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: "sysctlOption", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionType", span: Span { start: Position { line: 7, column: 18, }, end: Position { line: 7, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "sysctl option value", span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 8, column: 32, }, }, }, ), ], span: Span { start: Position { line: 8, column: 12, }, end: Position { line: 8, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "val", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "checkType", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isBool", span: Span { start: Position { line: 11, column: 24, }, end: Position { line: 11, column: 30, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 11, column: 31, }, end: Position { line: 11, column: 32, }, }, }, ), ], }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isString", span: Span { start: Position { line: 11, column: 36, }, end: Position { line: 11, column: 44, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 11, column: 45, }, end: Position { line: 11, column: 46, }, }, }, ), ], }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isInt", span: Span { start: Position { line: 11, column: 50, }, end: Position { line: 11, column: 55, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 11, column: 56, }, end: Position { line: 11, column: 57, }, }, }, ), ], }, ), }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 11, column: 61, }, end: Position { line: 11, column: 62, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 11, column: 66, }, end: Position { line: 11, column: 70, }, }, }, ), }, ), }, ), span: Span { start: Position { line: 11, column: 21, }, end: Position { line: 11, column: 70, }, }, }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "checkType", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 18, }, }, }, ), arguments: [ Identifier( Identifier { id: "val", span: Span { start: Position { line: 13, column: 19, }, end: Position { line: 13, column: 22, }, }, }, ), ], }, ), operator: LogicalOr, right: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "val", span: Span { start: Position { line: 13, column: 27, }, end: Position { line: 13, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "_type", span: Span { start: Position { line: 13, column: 31, }, end: Position { line: 13, column: 36, }, }, }, ), ], default: Some( String( String_ { parts: [], span: Span { start: Position { line: 13, column: 40, }, end: Position { line: 13, column: 42, }, }, }, ), ), }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "override", span: Span { start: Position { line: 13, column: 47, }, end: Position { line: 13, column: 55, }, }, }, ), ], span: Span { start: Position { line: 13, column: 46, }, end: Position { line: 13, column: 56, }, }, }, ), }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "checkType", span: Span { start: Position { line: 13, column: 60, }, end: Position { line: 13, column: 69, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "val", span: Span { start: Position { line: 13, column: 70, }, end: Position { line: 13, column: 73, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "content", span: Span { start: Position { line: 13, column: 74, }, end: Position { line: 13, column: 81, }, }, }, ), ], default: None, }, ), ], }, ), }, ), }, ), span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 13, column: 82, }, }, }, ), span: Span { start: Position { line: 9, column: 13, }, end: Position { line: 13, column: 82, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "merge", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "loc", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "defs", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mergeOneOption", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "loc", span: Span { start: Position { line: 14, column: 39, }, end: Position { line: 14, column: 42, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filterOverrides", span: Span { start: Position { line: 14, column: 44, }, end: Position { line: 14, column: 59, }, }, }, ), arguments: [ Identifier( Identifier { id: "defs", span: Span { start: Position { line: 14, column: 60, }, end: Position { line: 14, column: 64, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 14, column: 18, }, end: Position { line: 14, column: 65, }, }, }, ), span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 65, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 31, }, end: Position { line: 15, column: 4, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 21, column: 3, }, end: Position { line: 21, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 9, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 23, column: 10, }, end: Position { line: 23, column: 16, }, }, }, ), Raw( PartRaw { content: "sysctl", span: Span { start: Position { line: 23, column: 17, }, end: Position { line: 23, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 23, column: 26, }, end: Position { line: 23, column: 34, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 24, column: 17, }, end: Position { line: 24, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 25, column: 17, }, end: Position { line: 25, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{ \"net.ipv4.tcp_syncookies\" = false; \"vm.swappiness\" = 60; }\n", span: Span { start: Position { line: 26, column: 1, }, end: Position { line: 27, column: 7, }, }, }, ), ], span: Span { start: Position { line: 25, column: 35, }, end: Position { line: 27, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 14, }, end: Position { line: 28, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrsOf", span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 28, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "sysctlOption", span: Span { start: Position { line: 28, column: 28, }, end: Position { line: 28, column: 40, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 29, column: 25, }, end: Position { line: 29, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Runtime parameters of the Linux kernel, as set by\n{manpage}`sysctl(8)`. Note that sysctl\nparameters names must be enclosed in quotes\n(e.g. `\"vm.swappiness\"` instead of\n`vm.swappiness`). The value of each\nparameter may be a string, integer, boolean, or null\n(signifying the option will not appear at all).\n", span: Span { start: Position { line: 30, column: 1, }, end: Position { line: 37, column: 7, }, }, }, ), ], span: Span { start: Position { line: 29, column: 31, }, end: Position { line: 37, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 35, }, end: Position { line: 38, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 13, }, end: Position { line: 40, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 44, column: 5, }, end: Position { line: 44, column: 16, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 44, column: 17, }, end: Position { line: 44, column: 20, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "sysctl.d/60-nixos.conf", span: Span { start: Position { line: 44, column: 22, }, end: Position { line: 44, column: 44, }, }, }, ), ], span: Span { start: Position { line: 44, column: 21, }, end: Position { line: 44, column: 45, }, }, }, ), }, ), Raw( PartRaw { content: "text", span: Span { start: Position { line: 44, column: 46, }, end: Position { line: 44, column: 50, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStrings", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 20, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 45, column: 22, }, end: Position { line: 45, column: 36, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 23, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 46, column: 25, }, end: Position { line: 46, column: 26, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 46, column: 30, }, end: Position { line: 46, column: 34, }, }, }, ), }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 46, column: 39, }, end: Position { line: 46, column: 40, }, }, }, ), }, ), Raw( PartRaw { content: "=", span: Span { start: Position { line: 46, column: 37, }, end: Position { line: 46, column: 42, }, }, }, ), Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 46, column: 47, }, end: Position { line: 46, column: 48, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "false", span: Span { start: Position { line: 46, column: 52, }, end: Position { line: 46, column: 57, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "0", span: Span { start: Position { line: 46, column: 64, }, end: Position { line: 46, column: 65, }, }, }, ), ], span: Span { start: Position { line: 46, column: 63, }, end: Position { line: 46, column: 66, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 46, column: 72, }, end: Position { line: 46, column: 80, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 46, column: 81, }, end: Position { line: 46, column: 82, }, }, }, ), ], }, ), span: Span { start: Position { line: 46, column: 44, }, end: Position { line: 46, column: 82, }, }, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 46, column: 37, }, end: Position { line: 46, column: 85, }, }, }, ), ], span: Span { start: Position { line: 46, column: 36, }, end: Position { line: 46, column: 86, }, }, }, ), ], }, ), span: Span { start: Position { line: 45, column: 41, }, end: Position { line: 46, column: 86, }, }, }, ), span: Span { start: Position { line: 45, column: 38, }, end: Position { line: 46, column: 86, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 47, column: 16, }, end: Position { line: 47, column: 20, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), Raw( PartRaw { content: "sysctl", span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 47, column: 34, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 21, }, }, }, ), Raw( PartRaw { content: "systemd-sysctl", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 36, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 50, column: 40, }, }, }, ), ], span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 41, }, }, }, ), ], span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartTriggers", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 24, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 51, column: 29, }, end: Position { line: 51, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 51, column: 36, }, end: Position { line: 51, column: 47, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 51, column: 48, }, end: Position { line: 51, column: 51, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "sysctl.d/60-nixos.conf", span: Span { start: Position { line: 51, column: 53, }, end: Position { line: 51, column: 75, }, }, }, ), ], span: Span { start: Position { line: 51, column: 52, }, end: Position { line: 51, column: 76, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 51, column: 77, }, end: Position { line: 51, column: 83, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 51, column: 27, }, end: Position { line: 51, column: 85, }, }, }, ), }, ), ], span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 52, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 56, column: 5, }, end: Position { line: 56, column: 9, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 56, column: 10, }, end: Position { line: 56, column: 16, }, }, }, ), Raw( PartRaw { content: "sysctl", span: Span { start: Position { line: 56, column: 17, }, end: Position { line: 56, column: 23, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "kernel.kptr_restrict", span: Span { start: Position { line: 56, column: 25, }, end: Position { line: 56, column: 45, }, }, }, ), ], span: Span { start: Position { line: 56, column: 24, }, end: Position { line: 56, column: 46, }, }, }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 56, column: 49, }, end: Position { line: 56, column: 58, }, }, }, ), arguments: [ Integer( Integer { value: "1", span: Span { start: Position { line: 56, column: 59, }, end: Position { line: 56, column: 60, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 59, column: 5, }, end: Position { line: 59, column: 9, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 59, column: 10, }, end: Position { line: 59, column: 16, }, }, }, ), Raw( PartRaw { content: "sysctl", span: Span { start: Position { line: 59, column: 17, }, end: Position { line: 59, column: 23, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "kernel.yama.ptrace_scope", span: Span { start: Position { line: 59, column: 25, }, end: Position { line: 59, column: 49, }, }, }, ), ], span: Span { start: Position { line: 59, column: 24, }, end: Position { line: 59, column: 50, }, }, }, ), }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 59, column: 53, }, end: Position { line: 59, column: 62, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 59, column: 63, }, end: Position { line: 59, column: 64, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 42, column: 12, }, end: Position { line: 61, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 62, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 62, column: 2, }, }, }, )