Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 5, column: 9, }, end: Position { line: 5, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 5, column: 16, }, end: Position { line: 5, column: 24, }, }, }, ), Raw( PartRaw { content: "xmrig", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "json", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 7, column: 10, }, end: Position { line: 7, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 7, column: 15, }, end: Position { line: 7, column: 22, }, }, }, ), Raw( PartRaw { content: "json", span: Span { start: Position { line: 7, column: 23, }, end: Position { line: 7, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 7, column: 28, }, end: Position { line: 7, column: 31, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "json", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 8, column: 21, }, end: Position { line: 8, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "config.json", span: Span { start: Position { line: 8, column: 31, }, end: Position { line: 8, column: 42, }, }, }, ), ], span: Span { start: Position { line: 8, column: 30, }, end: Position { line: 8, column: 43, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 8, column: 44, }, end: Position { line: 8, column: 47, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 8, column: 48, }, end: Position { line: 8, column: 56, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 6, }, end: Position { line: 11, column: 9, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 13, }, }, }, ), Raw( PartRaw { content: "xmrig", span: Span { start: Position { line: 15, column: 14, }, end: Position { line: 15, column: 19, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 16, column: 16, }, end: Position { line: 16, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 32, }, end: Position { line: 16, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 36, }, end: Position { line: 16, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "XMRig Mining Software", span: Span { start: Position { line: 16, column: 43, }, end: Position { line: 16, column: 64, }, }, }, ), ], span: Span { start: Position { line: 16, column: 42, }, end: Position { line: 16, column: 65, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 18, column: 17, }, end: Position { line: 18, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 19, column: 16, }, end: Position { line: 19, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 19, column: 22, }, end: Position { line: 19, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "xmrig", span: Span { start: Position { line: 20, column: 24, }, end: Position { line: 20, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.xmrig", span: Span { start: Position { line: 21, column: 42, }, end: Position { line: 21, column: 52, }, }, }, ), ], span: Span { start: Position { line: 21, column: 41, }, end: Position { line: 21, column: 53, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 22, column: 19, }, end: Position { line: 22, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.xmrig-mo", span: Span { start: Position { line: 22, column: 38, }, end: Position { line: 22, column: 51, }, }, }, ), ], span: Span { start: Position { line: 22, column: 37, }, end: Position { line: 22, column: 52, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 23, column: 23, }, end: Position { line: 23, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 23, column: 27, }, end: Position { line: 23, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "XMRig package to use.", span: Span { start: Position { line: 23, column: 34, }, end: Position { line: 23, column: 55, }, }, }, ), ], span: Span { start: Position { line: 23, column: 33, }, end: Position { line: 23, column: 56, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 26, }, end: Position { line: 24, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 26, column: 18, }, end: Position { line: 26, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 27, column: 19, }, end: Position { line: 27, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "json", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 29, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n autosave = true;\n cpu = true;\n opencl = false;\n cuda = false;\n pools = [\n {\n url = \"pool.supportxmr.com:443\";\n user = \"your-wallet\";\n keepalive = true;\n tls = true;\n }\n ]\n}\n", span: Span { start: Position { line: 30, column: 1, }, end: Position { line: 44, column: 9, }, }, }, ), ], span: Span { start: Position { line: 29, column: 37, }, end: Position { line: 44, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 45, column: 23, }, end: Position { line: 45, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "XMRig configuration. Refer to\n\nfor details on supported values.\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 49, column: 9, }, }, }, ), ], span: Span { start: Position { line: 45, column: 33, }, end: Position { line: 49, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 26, column: 27, }, end: Position { line: 50, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 15, column: 22, }, end: Position { line: 51, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 52, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 54, column: 3, }, end: Position { line: 54, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 54, column: 12, }, end: Position { line: 54, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 54, column: 17, }, end: Position { line: 54, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 54, column: 21, }, end: Position { line: 54, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 55, column: 5, }, end: Position { line: 55, column: 9, }, }, }, ), Raw( PartRaw { content: "kernelModules", span: Span { start: Position { line: 55, column: 10, }, end: Position { line: 55, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "msr", span: Span { start: Position { line: 55, column: 29, }, end: Position { line: 55, column: 32, }, }, }, ), ], span: Span { start: Position { line: 55, column: 28, }, end: Position { line: 55, column: 33, }, }, }, ), ], span: Span { start: Position { line: 55, column: 26, }, end: Position { line: 55, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 57, column: 5, }, end: Position { line: 57, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 57, column: 13, }, end: Position { line: 57, column: 21, }, }, }, ), Raw( PartRaw { content: "xmrig", span: Span { start: Position { line: 57, column: 22, }, end: Position { line: 57, column: 27, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 58, column: 21, }, end: Position { line: 58, column: 38, }, }, }, ), ], span: Span { start: Position { line: 58, column: 20, }, end: Position { line: 58, column: 39, }, }, }, ), ], span: Span { start: Position { line: 58, column: 18, }, end: Position { line: 58, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 59, column: 7, }, end: Position { line: 59, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 59, column: 18, }, end: Position { line: 59, column: 32, }, }, }, ), ], span: Span { start: Position { line: 59, column: 17, }, end: Position { line: 59, column: 33, }, }, }, ), ], span: Span { start: Position { line: 59, column: 15, }, end: Position { line: 59, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 60, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "XMRig Mining Software Service", span: Span { start: Position { line: 60, column: 22, }, end: Position { line: 60, column: 51, }, }, }, ), ], span: Span { start: Position { line: 60, column: 21, }, end: Position { line: 60, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStartPre", span: Span { start: Position { line: 62, column: 9, }, end: Position { line: 62, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 62, column: 27, }, end: Position { line: 62, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 62, column: 31, }, end: Position { line: 62, column: 38, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/xmrig --config=", span: Span { start: Position { line: 62, column: 25, }, end: Position { line: 62, column: 59, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 62, column: 61, }, end: Position { line: 62, column: 71, }, }, }, ), }, ), Raw( PartRaw { content: " --dry-run", span: Span { start: Position { line: 62, column: 25, }, end: Position { line: 62, column: 82, }, }, }, ), ], span: Span { start: Position { line: 62, column: 24, }, end: Position { line: 62, column: 83, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 63, column: 24, }, end: Position { line: 63, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 63, column: 28, }, end: Position { line: 63, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/xmrig --config=", span: Span { start: Position { line: 63, column: 22, }, end: Position { line: 63, column: 56, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 63, column: 58, }, end: Position { line: 63, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 63, column: 21, }, end: Position { line: 63, column: 70, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 68, column: 9, }, end: Position { line: 68, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 68, column: 23, }, end: Position { line: 68, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkDefault", span: Span { start: Position { line: 68, column: 27, }, end: Position { line: 68, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "false", span: Span { start: Position { line: 68, column: 37, }, end: Position { line: 68, column: 42, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 61, column: 23, }, end: Position { line: 69, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 57, column: 30, }, end: Position { line: 70, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 54, column: 28, }, end: Position { line: 71, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 73, column: 3, }, end: Position { line: 73, column: 7, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 73, column: 15, }, end: Position { line: 73, column: 18, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 74, column: 5, }, end: Position { line: 74, column: 16, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 74, column: 24, }, end: Position { line: 74, column: 35, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "ratsclub", span: Span { start: Position { line: 74, column: 39, }, end: Position { line: 74, column: 47, }, }, }, ), ], span: Span { start: Position { line: 74, column: 37, }, end: Position { line: 74, column: 49, }, }, }, ), span: Span { start: Position { line: 74, column: 19, }, end: Position { line: 74, column: 49, }, }, }, ), }, ), ], span: Span { start: Position { line: 73, column: 20, }, end: Position { line: 75, column: 4, }, }, }, ), span: Span { start: Position { line: 73, column: 10, }, end: Position { line: 75, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 76, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 76, column: 2, }, }, }, )