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: 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: "jmusicbot", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 34, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 13, }, }, }, ), Raw( PartRaw { content: "jmusicbot", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 32, }, end: Position { line: 10, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 10, column: 36, }, end: Position { line: 10, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "jmusicbot, a Discord music bot that's easy to set up and run yourself", span: Span { start: Position { line: 10, column: 43, }, end: Position { line: 10, column: 112, }, }, }, ), ], span: Span { start: Position { line: 10, column: 42, }, end: Position { line: 10, column: 113, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 12, column: 17, }, end: Position { line: 12, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 13, column: 22, }, end: Position { line: 13, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 14, column: 9, }, end: Position { line: 14, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 14, column: 19, }, end: Position { line: 14, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jmusicbot", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 15, column: 23, }, end: Position { line: 15, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.jmusicbot", span: Span { start: Position { line: 15, column: 42, }, end: Position { line: 15, column: 56, }, }, }, ), ], span: Span { start: Position { line: 15, column: 41, }, end: Position { line: 15, column: 57, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 23, }, end: Position { line: 16, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 16, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "JMusicBot package to use", span: Span { start: Position { line: 16, column: 34, }, end: Position { line: 16, column: 58, }, }, }, ), ], span: Span { start: Position { line: 16, column: 33, }, end: Position { line: 16, column: 59, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 26, }, end: Position { line: 17, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "stateDir", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 19, column: 18, }, end: Position { line: 19, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 20, column: 9, }, end: Position { line: 20, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 20, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 20, column: 22, }, end: Position { line: 20, column: 26, }, }, }, ), ], default: None, }, ), }, ), 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: "The directory where config.txt and serversettings.json is saved.\nIf left as the default value this directory will automatically be created before JMusicBot starts, otherwise the sysadmin is responsible for ensuring the directory exists with appropriate ownership and permissions.\nUntouched by the value of this option config.txt needs to be placed manually into this directory.\n", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 25, column: 9, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 25, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 26, column: 9, }, end: Position { line: 26, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/jmusicbot/", span: Span { start: Position { line: 26, column: 20, }, end: Position { line: 26, column: 39, }, }, }, ), ], span: Span { start: Position { line: 26, column: 19, }, end: Position { line: 26, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 27, }, end: Position { line: 27, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 9, column: 26, }, end: Position { line: 28, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 29, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 31, column: 3, }, end: Position { line: 31, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 31, column: 12, }, end: Position { line: 31, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 31, column: 21, }, end: Position { line: 31, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 32, column: 5, }, end: Position { line: 32, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 32, column: 13, }, end: Position { line: 32, column: 21, }, }, }, ), Raw( PartRaw { content: "jmusicbot", span: Span { start: Position { line: 32, column: 22, }, end: Position { line: 32, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 33, column: 7, }, end: Position { line: 33, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 38, }, }, }, ), ], span: Span { start: Position { line: 33, column: 20, }, end: Position { line: 33, column: 39, }, }, }, ), ], span: Span { start: Position { line: 33, column: 18, }, end: Position { line: 33, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 34, column: 18, }, end: Position { line: 34, column: 39, }, }, }, ), ], span: Span { start: Position { line: 34, column: 17, }, end: Position { line: 34, column: 40, }, }, }, ), ], span: Span { start: Position { line: 34, column: 15, }, end: Position { line: 34, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Discord music bot that's easy to set up and run yourself!", span: Span { start: Position { line: 35, column: 22, }, end: Position { line: 35, column: 79, }, }, }, ), ], span: Span { start: Position { line: 35, column: 21, }, end: Position { line: 35, column: 80, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkMerge", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 30, }, }, }, ), arguments: [ List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 37, column: 24, }, end: Position { line: 37, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 37, column: 28, }, end: Position { line: 37, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/JMusicBot", span: Span { start: Position { line: 37, column: 22, }, end: Position { line: 37, column: 50, }, }, }, ), ], span: Span { start: Position { line: 37, column: 21, }, end: Position { line: 37, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WorkingDirectory", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 25, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 38, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stateDir", span: Span { start: Position { line: 38, column: 32, }, end: Position { line: 38, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 39, column: 20, }, end: Position { line: 39, column: 26, }, }, }, ), ], span: Span { start: Position { line: 39, column: 19, }, end: Position { line: 39, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RestartSec", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 19, }, }, }, ), ], to: Integer( Integer { value: "20", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 41, column: 23, }, end: Position { line: 41, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 36, column: 32, }, end: Position { line: 42, column: 8, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 43, column: 10, }, end: Position { line: 43, column: 14, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 43, column: 16, }, end: Position { line: 43, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stateDir", span: Span { start: Position { line: 43, column: 20, }, end: Position { line: 43, column: 28, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/jmusicbot", span: Span { start: Position { line: 43, column: 33, }, end: Position { line: 43, column: 51, }, }, }, ), ], span: Span { start: Position { line: 43, column: 32, }, end: Position { line: 43, column: 52, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "StateDirectory", span: Span { start: Position { line: 43, column: 56, }, end: Position { line: 43, column: 70, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "jmusicbot", span: Span { start: Position { line: 43, column: 74, }, end: Position { line: 43, column: 83, }, }, }, ), ], span: Span { start: Position { line: 43, column: 73, }, end: Position { line: 43, column: 84, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 54, }, end: Position { line: 43, column: 87, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 36, column: 31, }, end: Position { line: 43, column: 89, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 32, column: 34, }, end: Position { line: 44, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 31, column: 28, }, end: Position { line: 45, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 47, column: 3, }, end: Position { line: 47, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 47, column: 8, }, end: Position { line: 47, column: 19, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 47, column: 27, }, end: Position { line: 47, column: 38, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "SuperSandro2000", span: Span { start: Position { line: 47, column: 42, }, end: Position { line: 47, column: 57, }, }, }, ), ], span: Span { start: Position { line: 47, column: 40, }, end: Position { line: 47, column: 59, }, }, }, ), span: Span { start: Position { line: 47, column: 22, }, end: Position { line: 47, column: 59, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 48, column: 2, }, }, }, )