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: "crashdump", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 15, }, end: Position { line: 6, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 6, column: 22, }, end: Position { line: 6, column: 26, }, }, }, ), Raw( PartRaw { content: "crashDump", span: Span { start: Position { line: 6, column: 27, }, end: Position { line: 6, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 8, column: 18, }, end: Position { line: 8, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 8, column: 36, }, end: Position { line: 8, column: 37, }, }, }, ), ], span: Span { start: Position { line: 8, column: 35, }, end: Position { line: 8, column: 38, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "crashdump", span: Span { start: Position { line: 8, column: 39, }, end: Position { line: 8, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 8, column: 49, }, end: Position { line: 8, column: 61, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 13, column: 3, }, end: Position { line: 13, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "crashDump", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 16, column: 18, }, end: Position { line: 16, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 11, }, end: Position { line: 17, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 17, column: 18, }, end: Position { line: 17, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 17, column: 24, }, end: Position { line: 17, column: 28, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 18, column: 11, }, end: Position { line: 18, column: 18, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 18, column: 21, }, end: Position { line: 18, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 11, }, end: Position { line: 19, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 25, }, end: Position { line: 19, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 29, }, end: Position { line: 19, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If enabled, NixOS will set up a kernel that will\nboot on crash, and leave the user in systemd rescue\nto be able to save the crashed kernel dump at\n/proc/vmcore.\nIt also activates the NMI watchdog.\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 25, column: 11, }, }, }, ), ], span: Span { start: Position { line: 19, column: 35, }, end: Position { line: 25, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 26, column: 10, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "reservedMemory", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 26, }, end: Position { line: 27, column: 34, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 28, column: 11, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "128M", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 26, }, }, }, ), ], span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 29, column: 11, }, end: Position { line: 29, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 29, column: 18, }, end: Position { line: 29, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 29, column: 24, }, end: Position { line: 29, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 30, column: 11, }, end: Position { line: 30, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 30, column: 25, }, end: Position { line: 30, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 30, column: 29, }, end: Position { line: 30, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The amount of memory reserved for the crashdump kernel.\nIf you choose a too high value, dmesg will mention\n\"crashkernel reservation failed\".\n", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 34, column: 11, }, }, }, ), ], span: Span { start: Position { line: 30, column: 35, }, end: Position { line: 34, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 35, }, end: Position { line: 35, column: 10, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 36, column: 24, }, end: Position { line: 36, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 37, column: 11, }, end: Position { line: 37, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 37, column: 18, }, end: Position { line: 37, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 37, column: 24, }, end: Position { line: 37, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 37, column: 31, }, end: Position { line: 37, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 37, column: 37, }, end: Position { line: 37, column: 40, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 38, column: 11, }, end: Position { line: 38, column: 18, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "1", span: Span { start: Position { line: 38, column: 24, }, end: Position { line: 38, column: 25, }, }, }, ), ], span: Span { start: Position { line: 38, column: 23, }, end: Position { line: 38, column: 26, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "boot.shell_on_fail", span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 38, column: 46, }, }, }, ), ], span: Span { start: Position { line: 38, column: 27, }, end: Position { line: 38, column: 47, }, }, }, ), ], span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 39, column: 11, }, end: Position { line: 39, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 39, column: 25, }, end: Position { line: 39, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 39, column: 29, }, end: Position { line: 39, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Parameters that will be passed to the kernel kexec-ed on crash.\n", span: Span { start: Position { line: 40, column: 1, }, end: Position { line: 41, column: 11, }, }, }, ), ], span: Span { start: Position { line: 39, column: 35, }, end: Position { line: 41, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 33, }, end: Position { line: 42, column: 10, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 15, column: 19, }, end: Position { line: 43, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 12, }, end: Position { line: 44, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 13, column: 13, }, end: Position { line: 45, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 49, column: 3, }, end: Position { line: 49, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 49, column: 12, }, end: Position { line: 49, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "crashdump", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 49, column: 27, }, end: Position { line: 49, column: 33, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postBootCommands", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 23, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "echo \"loading crashdump kernel...\";\n", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 53, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 53, column: 11, }, end: Position { line: 53, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kexec-tools", span: Span { start: Position { line: 53, column: 16, }, end: Position { line: 53, column: 27, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/sbin/kexec -p /run/current-system/kernel \\\n--initrd=/run/current-system/initrd \\\n--reset-vga --console-vga \\\n--command-line=\"init=$(readlink -f /run/current-system/init) irqpoll maxcpus=1 reset_devices ", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 56, column: 102, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "kernelParams", span: Span { start: Position { line: 56, column: 104, }, end: Position { line: 56, column: 116, }, }, }, ), }, ), Raw( PartRaw { content: "\"\n", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 57, column: 7, }, }, }, ), ], span: Span { start: Position { line: 51, column: 26, }, end: Position { line: 57, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 19, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "crashkernel=", span: Span { start: Position { line: 59, column: 9, }, end: Position { line: 59, column: 48, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "crashdump", span: Span { start: Position { line: 59, column: 23, }, end: Position { line: 59, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "reservedMemory", span: Span { start: Position { line: 59, column: 33, }, end: Position { line: 59, column: 47, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 59, column: 8, }, end: Position { line: 59, column: 49, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "nmi_watchdog=panic", span: Span { start: Position { line: 60, column: 9, }, end: Position { line: 60, column: 27, }, }, }, ), ], span: Span { start: Position { line: 60, column: 8, }, end: Position { line: 60, column: 28, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "softlockup_panic=1", span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 61, column: 27, }, }, }, ), ], span: Span { start: Position { line: 61, column: 8, }, end: Position { line: 61, column: 28, }, }, }, ), ], span: Span { start: Position { line: 58, column: 22, }, end: Position { line: 62, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelPatches", span: Span { start: Position { line: 63, column: 7, }, end: Position { line: 63, column: 20, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "crashdump-config", span: Span { start: Position { line: 64, column: 17, }, end: Position { line: 64, column: 33, }, }, }, ), ], span: Span { start: Position { line: 64, column: 16, }, end: Position { line: 64, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "patch", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 65, column: 17, }, end: Position { line: 65, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 66, column: 9, }, end: Position { line: 66, column: 20, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "CRASH_DUMP y\nDEBUG_INFO y\nPROC_VMCORE y\nLOCKUP_DETECTOR y\nHARDLOCKUP_DETECTOR y\n", span: Span { start: Position { line: 67, column: 1, }, end: Position { line: 72, column: 15, }, }, }, ), ], span: Span { start: Position { line: 66, column: 23, }, end: Position { line: 72, column: 17, }, }, }, ), }, ), ], span: Span { start: Position { line: 63, column: 25, }, end: Position { line: 73, column: 10, }, }, }, ), ], span: Span { start: Position { line: 63, column: 23, }, end: Position { line: 73, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 50, column: 12, }, end: Position { line: 74, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 34, }, end: Position { line: 75, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 76, column: 2, }, }, }, )