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: 3, column: 3, }, end: Position { line: 3, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 3, column: 9, }, end: Position { line: 3, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 3, column: 16, }, end: Position { line: 3, column: 24, }, }, }, ), Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 3, column: 25, }, end: Position { line: 3, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFormat", span: Span { start: Position { line: 4, column: 3, }, end: Position { line: 4, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 4, column: 18, }, end: Position { line: 4, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 4, column: 23, }, end: Position { line: 4, column: 30, }, }, }, ), Raw( PartRaw { content: "json", span: Span { start: Position { line: 4, column: 31, }, end: Position { line: 4, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 4, column: 36, }, end: Position { line: 4, column: 38, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "configFormat", span: Span { start: Position { line: 5, column: 16, }, end: Position { line: 5, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 5, column: 29, }, end: Position { line: 5, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "meshcentral-config.json", span: Span { start: Position { line: 5, column: 39, }, end: Position { line: 5, column: 62, }, }, }, ), ], span: Span { start: Position { line: 5, column: 38, }, end: Position { line: 5, column: 63, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 5, column: 64, }, end: Position { line: 5, column: 67, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 5, column: 68, }, end: Position { line: 5, column: 76, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 12, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 11, }, end: Position { line: 7, column: 19, }, }, }, ), Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 7, column: 20, }, end: Position { line: 7, column: 31, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 7, column: 39, }, end: Position { line: 7, column: 44, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 8, column: 14, }, end: Position { line: 8, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 8, column: 30, }, end: Position { line: 8, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 8, column: 34, }, end: Position { line: 8, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "MeshCentral computer management server", span: Span { start: Position { line: 8, column: 41, }, end: Position { line: 8, column: 79, }, }, }, ), ], span: Span { start: Position { line: 8, column: 40, }, end: Position { line: 8, column: 80, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 9, column: 15, }, end: Position { line: 9, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 21, }, end: Position { line: 10, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 10, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "MeshCentral package to use. Replacing this may be necessary to add dependencies for extra functionality.", span: Span { start: Position { line: 10, column: 32, }, end: Position { line: 10, column: 136, }, }, }, ), ], span: Span { start: Position { line: 10, column: 31, }, end: Position { line: 10, column: 137, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 11, column: 7, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 11, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 11, column: 20, }, end: Position { line: 11, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 12, column: 17, }, end: Position { line: 12, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 12, column: 22, }, end: Position { line: 12, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 13, column: 21, }, end: Position { line: 13, column: 38, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.meshcentral", span: Span { start: Position { line: 13, column: 40, }, end: Position { line: 13, column: 56, }, }, }, ), ], span: Span { start: Position { line: 13, column: 39, }, end: Position { line: 13, column: 57, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 24, }, end: Position { line: 14, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 21, }, end: Position { line: 16, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 25, }, end: Position { line: 16, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Settings for MeshCentral. Refer to upstream documentation for details:\n\n- [JSON Schema definition](https://github.com/Ylianst/MeshCentral/blob/master/meshcentral-config-schema.json)\n- [simple sample configuration](https://github.com/Ylianst/MeshCentral/blob/master/sample-config.json)\n- [complex sample configuration](https://github.com/Ylianst/MeshCentral/blob/master/sample-config-advanced.json)\n- [Old homepage with documentation link](https://www.meshcommander.com/meshcentral2)\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 23, column: 7, }, }, }, ), ], span: Span { start: Position { line: 16, column: 31, }, end: Position { line: 23, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 24, column: 14, }, end: Position { line: 24, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 24, column: 20, }, end: Position { line: 24, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "freeformType", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "configFormat", span: Span { start: Position { line: 25, column: 24, }, end: Position { line: 25, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 25, column: 37, }, end: Position { line: 25, column: 41, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 24, column: 30, }, end: Position { line: 26, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WANonly", span: Span { start: Position { line: 29, column: 11, }, end: Position { line: 29, column: 18, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Cert", span: Span { start: Position { line: 30, column: 11, }, end: Position { line: 30, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "meshcentral.example.com", span: Span { start: Position { line: 30, column: 19, }, end: Position { line: 30, column: 42, }, }, }, ), ], span: Span { start: Position { line: 30, column: 18, }, end: Position { line: 30, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "TlsOffload", span: Span { start: Position { line: 31, column: 11, }, end: Position { line: 31, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "10.0.0.2,fd42::2", span: Span { start: Position { line: 31, column: 25, }, end: Position { line: 31, column: 41, }, }, }, ), ], span: Span { start: Position { line: 31, column: 24, }, end: Position { line: 31, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Port", span: Span { start: Position { line: 32, column: 11, }, end: Position { line: 32, column: 15, }, }, }, ), ], to: Integer( Integer { value: "4430", span: Span { start: Position { line: 32, column: 18, }, end: Position { line: 32, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 33, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "domains", span: Span { start: Position { line: 34, column: 9, }, end: Position { line: 34, column: 16, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [], span: Span { start: Position { line: 34, column: 17, }, end: Position { line: 34, column: 19, }, }, }, ), }, ), Raw( PartRaw { content: "certUrl", span: Span { start: Position { line: 34, column: 20, }, end: Position { line: 34, column: 27, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://meshcentral.example.com/", span: Span { start: Position { line: 34, column: 31, }, end: Position { line: 34, column: 63, }, }, }, ), ], span: Span { start: Position { line: 34, column: 30, }, end: Position { line: 34, column: 64, }, }, }, ), }, ), ], span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 35, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 25, }, end: Position { line: 36, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 46, }, end: Position { line: 37, column: 4, }, }, }, ), span: Span { start: Position { line: 7, column: 34, }, end: Position { line: 37, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 38, column: 3, }, end: Position { line: 38, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 38, column: 12, }, end: Position { line: 38, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 17, }, end: Position { line: 38, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 39, column: 5, }, end: Position { line: 39, column: 13, }, }, }, ), Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 39, column: 14, }, end: Position { line: 39, column: 25, }, }, }, ), Raw( PartRaw { content: "settings", span: Span { start: Position { line: 39, column: 26, }, end: Position { line: 39, column: 34, }, }, }, ), Raw( PartRaw { content: "settings", span: Span { start: Position { line: 39, column: 35, }, end: Position { line: 39, column: 43, }, }, }, ), Raw( PartRaw { content: "autoBackup", span: Span { start: Position { line: 39, column: 44, }, end: Position { line: 39, column: 54, }, }, }, ), Raw( PartRaw { content: "backupPath", span: Span { start: Position { line: 39, column: 55, }, end: Position { line: 39, column: 65, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 39, column: 68, }, end: Position { line: 39, column: 71, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkDefault", span: Span { start: Position { line: 39, column: 72, }, end: Position { line: 39, column: 81, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/meshcentral/backups", span: Span { start: Position { line: 39, column: 83, }, end: Position { line: 39, column: 111, }, }, }, ), ], span: Span { start: Position { line: 39, column: 82, }, end: Position { line: 39, column: 112, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 40, column: 5, }, end: Position { line: 40, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 40, column: 13, }, end: Position { line: 40, column: 21, }, }, }, ), Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 41, column: 7, }, end: Position { line: 41, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 41, column: 20, }, end: Position { line: 41, column: 37, }, }, }, ), ], span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 38, }, }, }, ), ], span: Span { start: Position { line: 41, column: 18, }, end: Position { line: 41, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 43, column: 24, }, end: Position { line: 43, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 43, column: 28, }, end: Position { line: 43, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/meshcentral --datapath /var/lib/meshcentral --configfile ", span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 98, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 43, column: 100, }, end: Position { line: 43, column: 110, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 112, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 44, column: 23, }, end: Position { line: 44, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectory", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 38, }, }, }, ), ], span: Span { start: Position { line: 45, column: 26, }, end: Position { line: 45, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CacheDirectory", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 23, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "meshcentral", span: Span { start: Position { line: 46, column: 27, }, end: Position { line: 46, column: 38, }, }, }, ), ], span: Span { start: Position { line: 46, column: 26, }, end: Position { line: 46, column: 39, }, }, }, ), }, ), ], span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 47, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 40, column: 36, }, end: Position { line: 48, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 49, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 50, column: 3, }, end: Position { line: 50, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 50, column: 8, }, end: Position { line: 50, column: 19, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 50, column: 24, }, end: Position { line: 50, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lheckemann", span: Span { start: Position { line: 50, column: 36, }, end: Position { line: 50, column: 46, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 48, }, }, }, ), }, ), ], span: Span { start: Position { line: 6, column: 14, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 6, column: 4, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 51, column: 2, }, }, }, )