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: "openarena", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 34, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 13, }, }, }, ), Raw( PartRaw { content: "openarena", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 11, column: 7, }, end: Position { line: 11, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 11, column: 16, }, end: Position { line: 11, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 32, }, end: Position { line: 11, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 11, column: 36, }, end: Position { line: 11, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "OpenArena", span: Span { start: Position { line: 11, column: 43, }, end: Position { line: 11, column: 52, }, }, }, ), ], span: Span { start: Position { line: 11, column: 42, }, end: Position { line: 11, column: 53, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "openPorts", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 13, column: 19, }, end: Position { line: 13, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 14, column: 9, }, end: Position { line: 14, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 14, column: 16, }, end: Position { line: 14, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 14, column: 22, }, end: Position { line: 14, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 15, column: 19, }, end: Position { line: 15, column: 24, }, }, }, ), }, ), 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: "Whether to open firewall ports for OpenArena", span: Span { start: Position { line: 16, column: 34, }, end: Position { line: 16, column: 78, }, }, }, ), ], span: Span { start: Position { line: 16, column: 33, }, end: Position { line: 16, column: 79, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 28, }, end: Position { line: 17, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 19, column: 28, }, }, }, ), 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: FunctionApplication( FunctionApplication { function: 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: "listOf", span: Span { start: Position { line: 20, column: 22, }, end: Position { line: 20, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 20, column: 29, }, end: Position { line: 20, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 20, column: 35, }, end: Position { line: 20, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 21, column: 19, }, end: Position { line: 21, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 22, column: 23, }, end: Position { line: 22, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 22, column: 27, }, end: Position { line: 22, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Extra flags to pass to {command}`oa_ded`", span: Span { start: Position { line: 22, column: 34, }, end: Position { line: 22, column: 74, }, }, }, ), ], span: Span { start: Position { line: 22, column: 33, }, end: Position { line: 22, column: 75, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "+set dedicated 2", span: Span { start: Position { line: 24, column: 12, }, end: Position { line: 24, column: 28, }, }, }, ), ], span: Span { start: Position { line: 24, column: 11, }, end: Position { line: 24, column: 29, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "+set sv_hostname 'My NixOS OpenArena Server'", span: Span { start: Position { line: 25, column: 12, }, end: Position { line: 25, column: 56, }, }, }, ), ], span: Span { start: Position { line: 25, column: 11, }, end: Position { line: 25, column: 57, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "+map oa_dm1", span: Span { start: Position { line: 27, column: 12, }, end: Position { line: 27, column: 23, }, }, }, ), ], span: Span { start: Position { line: 27, column: 11, }, end: Position { line: 27, column: 24, }, }, }, ), ], span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 28, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 29, }, end: Position { line: 29, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 10, column: 26, }, end: Position { line: 30, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 13, }, end: Position { line: 31, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 33, column: 3, }, end: Position { line: 33, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 33, column: 12, }, end: Position { line: 33, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 33, column: 17, }, end: Position { line: 33, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 34, column: 15, }, }, }, ), Raw( PartRaw { content: "firewall", span: Span { start: Position { line: 34, column: 16, }, end: Position { line: 34, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 34, column: 27, }, end: Position { line: 34, column: 31, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 34, column: 32, }, end: Position { line: 34, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openPorts", span: Span { start: Position { line: 34, column: 36, }, end: Position { line: 34, column: 45, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "allowedUDPPorts", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 22, }, }, }, ), ], to: List( List { elements: [ Integer( Integer { value: "27960", span: Span { start: Position { line: 35, column: 27, }, end: Position { line: 35, column: 32, }, }, }, ), ], span: Span { start: Position { line: 35, column: 25, }, end: Position { line: 35, column: 34, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 46, }, end: Position { line: 36, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 38, column: 13, }, end: Position { line: 38, column: 21, }, }, }, ), Raw( PartRaw { content: "openarena", span: Span { start: Position { line: 38, column: 22, }, end: Position { line: 38, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "OpenArena", span: Span { start: Position { line: 39, column: 22, }, end: Position { line: 39, column: 31, }, }, }, ), ], span: Span { start: Position { line: 39, column: 21, }, end: Position { line: 39, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 40, column: 21, }, end: Position { line: 40, column: 38, }, }, }, ), ], span: Span { start: Position { line: 40, column: 20, }, end: Position { line: 40, column: 39, }, }, }, ), ], span: Span { start: Position { line: 40, column: 18, }, end: Position { line: 40, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 41, column: 7, }, end: Position { line: 41, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 41, column: 18, }, end: Position { line: 41, column: 32, }, }, }, ), ], span: Span { start: Position { line: 41, column: 17, }, end: Position { line: 41, column: 33, }, }, }, ), ], span: Span { start: Position { line: 41, column: 15, }, end: Position { line: 41, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ 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: "openarena", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 36, }, }, }, ), ], span: Span { start: Position { line: 45, column: 26, }, end: Position { line: 45, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 46, column: 24, }, end: Position { line: 46, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openarena", span: Span { start: Position { line: 46, column: 29, }, end: Position { line: 46, column: 38, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/oa_ded +set fs_basepath ", span: Span { start: Position { line: 46, column: 22, }, end: Position { line: 46, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 46, column: 70, }, end: Position { line: 46, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openarena", span: Span { start: Position { line: 46, column: 75, }, end: Position { line: 46, column: 84, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/openarena-0.8.8 +set fs_homepath /var/lib/openarena ", span: Span { start: Position { line: 46, column: 22, }, end: Position { line: 46, column: 138, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 46, column: 140, }, end: Position { line: 46, column: 156, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 46, column: 158, }, end: Position { line: 46, column: 159, }, }, }, ), ], span: Span { start: Position { line: 46, column: 157, }, end: Position { line: 46, column: 160, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 46, column: 161, }, end: Position { line: 46, column: 164, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraFlags", span: Span { start: Position { line: 46, column: 165, }, end: Position { line: 46, column: 175, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 46, column: 21, }, end: Position { line: 46, column: 177, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 47, column: 20, }, end: Position { line: 47, column: 30, }, }, }, ), ], span: Span { start: Position { line: 47, column: 19, }, end: Position { line: 47, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "CapabilityBoundingSet", span: Span { start: Position { line: 50, column: 9, }, end: Position { line: 50, column: 30, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 50, column: 33, }, end: Position { line: 50, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NoNewPrivileges", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 24, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 51, column: 27, }, end: Position { line: 51, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PrivateDevices", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 23, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 52, column: 26, }, end: Position { line: 52, column: 30, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 23, }, end: Position { line: 53, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 34, }, end: Position { line: 54, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 33, column: 28, }, end: Position { line: 55, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 56, column: 2, }, }, }, )