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: 4, column: 6, }, end: Position { line: 4, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), Raw( PartRaw { content: "fusionInventory", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 9, column: 21, }, end: Position { line: 9, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "fusion_inventory.conf", span: Span { start: Position { line: 9, column: 32, }, end: Position { line: 9, column: 53, }, }, }, ), ], span: Span { start: Position { line: 9, column: 31, }, end: Position { line: 9, column: 54, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "server = ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 10, column: 14, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 32, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: ", ", span: Span { start: Position { line: 10, column: 34, }, end: Position { line: 10, column: 36, }, }, }, ), ], span: Span { start: Position { line: 10, column: 33, }, end: Position { line: 10, column: 37, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 10, column: 38, }, end: Position { line: 10, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "servers", span: Span { start: Position { line: 10, column: 42, }, end: Position { line: 10, column: 49, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n\nlogger = stderr\n\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 14, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 14, column: 11, }, end: Position { line: 14, column: 22, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 15, column: 3, }, }, }, ), ], span: Span { start: Position { line: 9, column: 55, }, end: Position { line: 15, column: 5, }, }, }, ), ], }, ), }, ), ], 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: "services", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 13, }, }, }, ), Raw( PartRaw { content: "fusionInventory", span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 25, column: 16, }, end: Position { line: 25, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 25, column: 32, }, end: Position { line: 25, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 25, column: 36, }, end: Position { line: 25, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Fusion Inventory Agent", span: Span { start: Position { line: 25, column: 43, }, end: Position { line: 25, column: 65, }, }, }, ), ], span: Span { start: Position { line: 25, column: 42, }, end: Position { line: 25, column: 66, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "servers", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 28, column: 29, }, end: Position { line: 28, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 28, column: 35, }, end: Position { line: 28, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 29, column: 23, }, end: Position { line: 29, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 29, column: 27, }, end: Position { line: 29, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The urls of the OCS/GLPI servers to connect to.\n", span: Span { start: Position { line: 30, column: 1, }, end: Position { line: 31, column: 9, }, }, }, ), ], span: Span { start: Position { line: 29, column: 33, }, end: Position { line: 31, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 26, }, end: Position { line: 32, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 34, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 36, column: 16, }, end: Position { line: 36, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 36, column: 22, }, end: Position { line: 36, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 23, }, end: Position { line: 37, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 37, column: 27, }, end: Position { line: 37, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Configuration that is injected verbatim into the configuration file.\n", span: Span { start: Position { line: 38, column: 1, }, end: Position { line: 39, column: 9, }, }, }, ), ], span: Span { start: Position { line: 37, column: 33, }, end: Position { line: 39, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 34, column: 30, }, end: Position { line: 40, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 32, }, end: Position { line: 41, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 13, }, end: Position { line: 42, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 47, column: 3, }, end: Position { line: 47, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 49, column: 11, }, end: Position { line: 49, column: 16, }, }, }, ), Raw( PartRaw { content: "fusion-inventory", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "FusionInventory user", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 42, }, }, }, ), ], span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 36, }, end: Position { line: 52, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 54, column: 5, }, end: Position { line: 54, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 54, column: 13, }, end: Position { line: 54, column: 21, }, }, }, ), Raw( PartRaw { content: "fusion-inventory", span: Span { start: Position { line: 54, column: 22, }, end: Position { line: 54, column: 38, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 55, column: 7, }, end: Position { line: 55, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Fusion Inventory Agent", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 44, }, }, }, ), ], span: Span { start: Position { line: 55, column: 21, }, end: Position { line: 55, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 56, column: 7, }, end: Position { line: 56, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 56, column: 21, }, end: Position { line: 56, column: 38, }, }, }, ), ], span: Span { start: Position { line: 56, column: 20, }, end: Position { line: 56, column: 39, }, }, }, ), ], span: Span { start: Position { line: 56, column: 18, }, end: Position { line: 56, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 59, column: 9, }, end: Position { line: 59, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 59, column: 24, }, end: Position { line: 59, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fusionInventory", span: Span { start: Position { line: 59, column: 29, }, end: Position { line: 59, column: 44, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/fusioninventory-agent --conf-file=", span: Span { start: Position { line: 59, column: 22, }, end: Position { line: 59, column: 84, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 59, column: 86, }, end: Position { line: 59, column: 96, }, }, }, ), }, ), Raw( PartRaw { content: " --daemon --no-fork", span: Span { start: Position { line: 59, column: 22, }, end: Position { line: 59, column: 116, }, }, }, ), ], span: Span { start: Position { line: 59, column: 21, }, end: Position { line: 59, column: 117, }, }, }, ), }, ), ], span: Span { start: Position { line: 58, column: 23, }, end: Position { line: 60, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 54, column: 41, }, end: Position { line: 61, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 62, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 4, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 63, column: 2, }, }, }, )