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: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 7, column: 21, }, end: Position { line: 7, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "ananicy.conf", span: Span { start: Position { line: 7, column: 32, }, end: Position { line: 7, column: 44, }, }, }, ), ], span: Span { start: Position { line: 7, column: 31, }, end: Position { line: 7, column: 45, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "generators", span: Span { start: Position { line: 7, column: 47, }, end: Position { line: 7, column: 57, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toKeyValue", span: Span { start: Position { line: 7, column: 58, }, end: Position { line: 7, column: 68, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 7, column: 69, }, end: Position { line: 7, column: 72, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 7, column: 73, }, end: Position { line: 7, column: 76, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 7, column: 77, }, end: Position { line: 7, column: 85, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 8, column: 21, }, end: Position { line: 8, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 8, column: 32, }, end: Position { line: 8, column: 42, }, }, }, ), ], span: Span { start: Position { line: 8, column: 31, }, 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: "extraRules", span: Span { start: Position { line: 8, column: 48, }, end: Position { line: 8, column: 58, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "servicename", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 22, }, end: Position { line: 9, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getName", span: Span { start: Position { line: 9, column: 26, }, end: Position { line: 9, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 9, column: 34, }, end: Position { line: 9, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 9, column: 38, }, end: Position { line: 9, column: 45, }, }, }, ), ], default: None, }, ), ], }, ), operator: EqualTo, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 51, }, end: Position { line: 9, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getName", span: Span { start: Position { line: 9, column: 55, }, end: Position { line: 9, column: 62, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 9, column: 63, }, end: Position { line: 9, column: 67, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ananicy-cpp", span: Span { start: Position { line: 9, column: 68, }, end: Position { line: 9, column: 79, }, }, }, ), ], default: None, }, ), ], }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "ananicy-cpp", span: Span { start: Position { line: 9, column: 88, }, end: Position { line: 9, column: 99, }, }, }, ), ], span: Span { start: Position { line: 9, column: 87, }, end: Position { line: 9, column: 100, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 9, column: 107, }, end: Position { line: 9, column: 114, }, }, }, ), ], span: Span { start: Position { line: 9, column: 106, }, end: Position { line: 9, column: 115, }, }, }, ), span: Span { start: Position { line: 9, column: 17, }, end: Position { line: 9, column: 115, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 13, }, }, }, ), Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 13, column: 14, }, end: Position { line: 13, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 14, column: 16, }, end: Position { line: 14, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 32, }, end: Position { line: 14, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 36, }, end: Position { line: 14, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Ananicy, an auto nice daemon", span: Span { start: Position { line: 14, column: 43, }, end: Position { line: 14, column: 71, }, }, }, ), ], span: Span { start: Position { line: 14, column: 42, }, end: Position { line: 14, column: 72, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 16, column: 17, }, end: Position { line: 16, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 17, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 19, }, end: Position { line: 18, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 18, column: 24, }, end: Position { line: 18, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 19, column: 23, }, end: Position { line: 19, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.ananicy", span: Span { start: Position { line: 19, column: 42, }, end: Position { line: 19, column: 54, }, }, }, ), ], span: Span { start: Position { line: 19, column: 41, }, end: Position { line: 19, column: 55, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.ananicy-cpp", span: Span { start: Position { line: 20, column: 38, }, end: Position { line: 20, column: 54, }, }, }, ), ], span: Span { start: Position { line: 20, column: 37, }, end: Position { line: 20, column: 55, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 27, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Which ananicy package to use.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 23, column: 9, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 23, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, 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: "type", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 27, column: 21, }, end: Position { line: 27, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 27, column: 28, }, end: Position { line: 27, column: 35, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "oneOf", span: Span { start: Position { line: 27, column: 37, }, end: Position { line: 27, column: 42, }, }, }, ), arguments: [ List( List { elements: [ Identifier( Identifier { id: "int", span: Span { start: Position { line: 27, column: 45, }, end: Position { line: 27, column: 48, }, }, }, ), Identifier( Identifier { id: "bool", span: Span { start: Position { line: 27, column: 49, }, end: Position { line: 27, column: 53, }, }, }, ), Identifier( Identifier { id: "str", span: Span { start: Position { line: 27, column: 54, }, end: Position { line: 27, column: 57, }, }, }, ), ], span: Span { start: Position { line: 27, column: 43, }, end: Position { line: 27, column: 59, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 27, column: 16, }, end: Position { line: 27, column: 60, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 28, column: 19, }, end: Position { line: 28, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_nice", span: Span { start: Position { line: 30, column: 11, }, end: Position { line: 30, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 30, column: 24, }, end: Position { line: 30, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 29, column: 19, }, end: Position { line: 31, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 32, column: 23, }, end: Position { line: 32, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 32, column: 27, }, end: Position { line: 32, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "See \n", span: Span { start: Position { line: 33, column: 1, }, end: Position { line: 34, column: 9, }, }, }, ), ], span: Span { start: Position { line: 32, column: 33, }, end: Position { line: 34, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 26, column: 27, }, end: Position { line: 35, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 37, column: 20, }, end: Position { line: 37, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 38, column: 16, }, end: Position { line: 38, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 38, column: 22, }, end: Position { line: 38, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 39, column: 19, }, end: Position { line: 39, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 23, }, end: Position { line: 40, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 27, }, end: Position { line: 40, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Extra rules in json format on separate lines. See:\n\n\n", span: Span { start: Position { line: 41, column: 1, }, end: Position { line: 44, column: 9, }, }, }, ), ], span: Span { start: Position { line: 40, column: 33, }, end: Position { line: 44, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 46, column: 11, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 46, column: 14, }, }, }, ), Raw( PartRaw { content: "\n { \"name\": \"eog\", \"type\": \"Image-View\" }\n { \"name\": \"fdupes\", \"type\": \"BG_CPUIO\" }\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 49, column: 11, }, }, }, ), Raw( PartRaw { content: "''", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 49, column: 14, }, }, }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 50, column: 9, }, }, }, ), ], span: Span { start: Position { line: 45, column: 37, }, end: Position { line: 50, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 37, column: 29, }, end: Position { line: 52, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 24, }, end: Position { line: 53, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 12, column: 13, }, end: Position { line: 54, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 56, column: 3, }, end: Position { line: 56, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 56, column: 12, }, end: Position { line: 56, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 56, column: 17, }, end: Position { line: 56, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 56, column: 21, }, end: Position { line: 56, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 57, column: 5, }, end: Position { line: 57, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 21, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 58, column: 26, }, end: Position { line: 58, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 58, column: 30, }, end: Position { line: 58, column: 37, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 58, column: 24, }, end: Position { line: 58, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "etc", span: Span { start: Position { line: 59, column: 7, }, end: Position { line: 59, column: 10, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "ananicy.d", span: Span { start: Position { line: 59, column: 12, }, end: Position { line: 59, column: 21, }, }, }, ), ], span: Span { start: Position { line: 59, column: 11, }, end: Position { line: 59, column: 22, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 59, column: 23, }, end: Position { line: 59, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 59, column: 32, }, end: Position { line: 59, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommandLocal", span: Span { start: Position { line: 59, column: 37, }, end: Position { line: 59, column: 52, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "ananicyfiles", span: Span { start: Position { line: 59, column: 54, }, end: Position { line: 59, column: 66, }, }, }, ), ], span: Span { start: Position { line: 59, column: 53, }, end: Position { line: 59, column: 67, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 59, column: 68, }, end: Position { line: 59, column: 71, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out\n# ananicy-cpp does not include rules or settings on purpose\ncp -r ", span: Span { start: Position { line: 60, column: 1, }, end: Position { line: 62, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 62, column: 17, }, end: Position { line: 62, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 62, column: 22, }, end: Position { line: 62, column: 29, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/etc/ananicy.d/* $out\nrm $out/ananicy.conf\ncp ", span: Span { start: Position { line: 60, column: 1, }, end: Position { line: 64, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 64, column: 14, }, end: Position { line: 64, column: 24, }, }, }, ), }, ), Raw( PartRaw { content: " $out/ananicy.conf\n", span: Span { start: Position { line: 60, column: 1, }, end: Position { line: 65, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 65, column: 11, }, end: Position { line: 65, column: 25, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 65, column: 31, }, end: Position { line: 65, column: 41, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 65, column: 45, }, end: Position { line: 65, column: 47, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "cp ", span: Span { start: Position { line: 65, column: 50, }, end: Position { line: 65, column: 66, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "extraRules", span: Span { start: Position { line: 65, column: 55, }, end: Position { line: 65, column: 65, }, }, }, ), }, ), Raw( PartRaw { content: " $out/nixRules.rules", span: Span { start: Position { line: 65, column: 50, }, end: Position { line: 65, column: 86, }, }, }, ), ], span: Span { start: Position { line: 65, column: 49, }, end: Position { line: 65, column: 87, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 60, column: 1, }, end: Position { line: 66, column: 7, }, }, }, ), ], span: Span { start: Position { line: 59, column: 72, }, end: Position { line: 66, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 57, column: 19, }, end: Position { line: 67, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 70, column: 5, }, end: Position { line: 70, column: 13, }, }, }, ), Raw( PartRaw { content: "ananicy", span: Span { start: Position { line: 70, column: 14, }, end: Position { line: 70, column: 21, }, }, }, ), Raw( PartRaw { content: "settings", span: Span { start: Position { line: 70, column: 22, }, end: Position { line: 70, column: 30, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkOD", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 13, }, }, }, ), ], to: Identifier( Identifier { id: "mkOptionDefault", span: Span { start: Position { line: 72, column: 16, }, end: Position { line: 72, column: 31, }, }, }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cgroup_load", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 75, column: 23, }, end: Position { line: 75, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 75, column: 28, }, end: Position { line: 75, column: 32, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type_load", span: Span { start: Position { line: 76, column: 9, }, end: Position { line: 76, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 76, column: 21, }, end: Position { line: 76, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 76, column: 26, }, end: Position { line: 76, column: 30, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rule_load", span: Span { start: Position { line: 77, column: 9, }, end: Position { line: 77, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 77, column: 21, }, end: Position { line: 77, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 77, column: 26, }, end: Position { line: 77, column: 30, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_nice", span: Span { start: Position { line: 78, column: 9, }, end: Position { line: 78, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 78, column: 22, }, end: Position { line: 78, column: 26, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 78, column: 27, }, end: Position { line: 78, column: 31, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_ioclass", span: Span { start: Position { line: 79, column: 9, }, end: Position { line: 79, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 79, column: 25, }, end: Position { line: 79, column: 29, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 79, column: 30, }, end: Position { line: 79, column: 34, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_ionice", span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 80, column: 24, }, end: Position { line: 80, column: 28, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 80, column: 29, }, end: Position { line: 80, column: 33, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_sched", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 81, column: 23, }, end: Position { line: 81, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 81, column: 28, }, end: Position { line: 81, column: 32, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_oom_score_adj", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 28, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 82, column: 31, }, end: Position { line: 82, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 82, column: 36, }, end: Position { line: 82, column: 40, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply_cgroup", span: Span { start: Position { line: 83, column: 9, }, end: Position { line: 83, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 83, column: 24, }, end: Position { line: 83, column: 28, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 83, column: 29, }, end: Position { line: 83, column: 33, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 74, column: 7, }, end: Position { line: 84, column: 8, }, }, }, ), operator: Update, right: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 84, column: 18, }, end: Position { line: 84, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getName", span: Span { start: Position { line: 84, column: 22, }, end: Position { line: 84, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 84, column: 30, }, end: Position { line: 84, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 84, column: 34, }, end: Position { line: 84, column: 41, }, }, }, ), ], default: None, }, ), ], }, ), operator: EqualTo, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 84, column: 47, }, end: Position { line: 84, column: 50, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "getName", span: Span { start: Position { line: 84, column: 51, }, end: Position { line: 84, column: 58, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 84, column: 59, }, end: Position { line: 84, column: 63, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ananicy-cpp", span: Span { start: Position { line: 84, column: 64, }, end: Position { line: 84, column: 75, }, }, }, ), ], default: None, }, ), ], }, ), }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "loglevel", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 86, column: 20, }, end: Position { line: 86, column: 24, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "warn", span: Span { start: Position { line: 86, column: 26, }, end: Position { line: 86, column: 30, }, }, }, ), ], span: Span { start: Position { line: 86, column: 25, }, end: Position { line: 86, column: 31, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cgroup_realtime_workaround", span: Span { start: Position { line: 87, column: 9, }, end: Position { line: 87, column: 35, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 87, column: 38, }, end: Position { line: 87, column: 42, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 87, column: 43, }, end: Position { line: 87, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 87, column: 50, }, end: Position { line: 87, column: 57, }, }, }, ), Raw( PartRaw { content: "enableUnifiedCgroupHierarchy", span: Span { start: Position { line: 87, column: 58, }, end: Position { line: 87, column: 86, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 84, column: 83, }, end: Position { line: 88, column: 8, }, }, }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check_disks_schedulers", span: Span { start: Position { line: 90, column: 9, }, end: Position { line: 90, column: 31, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 90, column: 34, }, end: Position { line: 90, column: 38, }, }, }, ), arguments: [ Identifier( Identifier { id: "true", span: Span { start: Position { line: 90, column: 39, }, end: Position { line: 90, column: 43, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check_freq", span: Span { start: Position { line: 91, column: 9, }, end: Position { line: 91, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOD", span: Span { start: Position { line: 91, column: 22, }, end: Position { line: 91, column: 26, }, }, }, ), arguments: [ Integer( Integer { value: "5", span: Span { start: Position { line: 91, column: 27, }, end: Position { line: 91, column: 28, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 88, column: 14, }, end: Position { line: 92, column: 8, }, }, }, ), span: Span { start: Position { line: 84, column: 13, }, end: Position { line: 92, column: 8, }, }, }, ), }, ), span: Span { start: Position { line: 71, column: 7, }, end: Position { line: 92, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 94, column: 5, }, end: Position { line: 94, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enableUnifiedCgroupHierarchy", span: Span { start: Position { line: 96, column: 7, }, end: Position { line: 96, column: 35, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 96, column: 38, }, end: Position { line: 96, column: 47, }, }, }, ), arguments: [ Identifier( Identifier { id: "false", span: Span { start: Position { line: 96, column: 48, }, end: Position { line: 96, column: 53, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "packages", span: Span { start: Position { line: 97, column: 7, }, end: Position { line: 97, column: 15, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 97, column: 20, }, end: Position { line: 97, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 97, column: 24, }, end: Position { line: 97, column: 31, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 97, column: 18, }, end: Position { line: 97, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 98, column: 7, }, end: Position { line: 98, column: 15, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "servicename", span: Span { start: Position { line: 98, column: 19, }, end: Position { line: 98, column: 30, }, }, }, ), }, ), ], span: Span { start: Position { line: 98, column: 16, }, end: Position { line: 98, column: 32, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 99, column: 9, }, end: Position { line: 99, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "default.target", span: Span { start: Position { line: 99, column: 23, }, end: Position { line: 99, column: 37, }, }, }, ), ], span: Span { start: Position { line: 99, column: 22, }, end: Position { line: 99, column: 38, }, }, }, ), ], span: Span { start: Position { line: 99, column: 20, }, end: Position { line: 99, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 98, column: 35, }, end: Position { line: 100, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 94, column: 15, }, end: Position { line: 101, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 56, column: 28, }, end: Position { line: 102, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 104, column: 3, }, end: Position { line: 104, column: 7, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 105, column: 5, }, end: Position { line: 105, column: 16, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 105, column: 24, }, end: Position { line: 105, column: 35, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "artturin", span: Span { start: Position { line: 105, column: 39, }, end: Position { line: 105, column: 47, }, }, }, ), ], span: Span { start: Position { line: 105, column: 37, }, end: Position { line: 105, column: 49, }, }, }, ), span: Span { start: Position { line: 105, column: 19, }, end: Position { line: 105, column: 49, }, }, }, ), }, ), ], span: Span { start: Position { line: 104, column: 10, }, end: Position { line: 106, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 107, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 107, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 107, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 107, column: 2, }, }, }, )