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: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 2, column: 6, }, end: Position { line: 2, 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: "quake3-server", span: Span { start: Position { line: 5, column: 25, }, end: Position { line: 5, column: 38, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 6, column: 21, }, end: Position { line: 6, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "q3ds-extra.cfg", span: Span { start: Position { line: 6, column: 32, }, end: Position { line: 6, column: 46, }, }, }, ), ], span: Span { start: Position { line: 6, column: 31, }, end: Position { line: 6, column: 47, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "set net_port ", span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 7, column: 18, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 7, column: 20, }, end: Position { line: 7, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toString", span: Span { start: Position { line: 7, column: 29, }, end: Position { line: 7, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 41, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 7, column: 42, }, end: Position { line: 7, column: 46, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n\n", span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 9, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 9, column: 7, }, end: Position { line: 9, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 9, column: 11, }, end: Position { line: 9, column: 22, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 10, column: 3, }, }, }, ), ], span: Span { start: Position { line: 6, column: 48, }, end: Position { line: 10, column: 5, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultBaseq3", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 11, column: 19, }, end: Position { line: 11, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "requireFile", span: Span { start: Position { line: 11, column: 24, }, end: Position { line: 11, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 12, column: 13, }, end: Position { line: 12, column: 19, }, }, }, ), ], span: Span { start: Position { line: 12, column: 12, }, end: Position { line: 12, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hashMode", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "recursive", span: Span { start: Position { line: 13, column: 17, }, end: Position { line: 13, column: 26, }, }, }, ), ], span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sha256", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "5dd8ee09eabd45e80450f31d7a8b69b846f59738726929298d8a813ce5725ed3", span: Span { start: Position { line: 14, column: 15, }, end: Position { line: 14, column: 79, }, }, }, ), ], span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 80, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 12, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Unfortunately, we cannot download ", span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 16, column: 41, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 16, column: 43, }, end: Position { line: 16, column: 47, }, }, }, ), }, ), Raw( PartRaw { content: " automatically.\nPlease purchase a legitimate copy of Quake 3 and change into the installation directory.\n\nYou can either add all relevant files to the nix-store like this:\nmkdir /tmp/baseq3\ncp baseq3/pak*.pk3 /tmp/baseq3\nnix-store --add-fixed sha256 --recursive /tmp/baseq3\n\nAlternatively you can set services.quake3-server.baseq3 to a path and copy the baseq3 directory into\n$services.quake3-server.baseq3/.q3a/\n", span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 26, column: 5, }, }, }, ), ], span: Span { start: Position { line: 15, column: 15, }, end: Position { line: 26, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 11, column: 36, }, end: Position { line: 27, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "home", span: Span { start: Position { line: 28, column: 3, }, end: Position { line: 28, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 28, column: 10, }, end: Position { line: 28, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 28, column: 15, }, end: Position { line: 28, column: 25, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "quake3-home", span: Span { start: Position { line: 28, column: 27, }, end: Position { line: 28, column: 38, }, }, }, ), ], span: Span { start: Position { line: 28, column: 26, }, end: Position { line: 28, column: 39, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 28, column: 40, }, end: Position { line: 28, column: 42, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out/.q3a/baseq3\n\nfor file in ", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 31, column: 19, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 31, column: 21, }, end: Position { line: 31, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 31, column: 25, }, end: Position { line: 31, column: 31, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/*; do\n ln -s $file $out/.q3a/baseq3/$(basename $file)\ndone\n\nln -s ", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 35, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 35, column: 15, }, end: Position { line: 35, column: 25, }, }, }, ), }, ), Raw( PartRaw { content: " $out/.q3a/baseq3/nix.cfg\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 36, column: 3, }, }, }, ), ], span: Span { start: Position { line: 28, column: 43, }, end: Position { line: 36, column: 5, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 38, column: 3, }, end: Position { line: 38, column: 10, }, }, }, ), ], to: 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: "quake3-server", span: Span { start: Position { line: 39, column: 14, }, end: Position { line: 39, column: 27, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 40, column: 36, }, end: Position { line: 40, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Quake 3 dedicated server", span: Span { start: Position { line: 40, column: 43, }, end: Position { line: 40, column: 67, }, }, }, ), ], span: Span { start: Position { line: 40, column: 42, }, end: Position { line: 40, column: 68, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 42, column: 14, }, end: Position { line: 42, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 43, column: 16, }, end: Position { line: 43, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 16, }, }, }, ), ], to: Integer( Integer { value: "27960", span: Span { start: Position { line: 44, column: 19, }, end: Position { line: 44, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 45, column: 9, }, end: Position { line: 45, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 45, column: 23, }, end: Position { line: 45, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "UDP Port the server should listen on.\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 47, column: 9, }, }, }, ), ], span: Span { start: Position { line: 45, column: 33, }, end: Position { line: 47, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 48, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 30, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 51, column: 9, }, end: Position { line: 51, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 51, column: 16, }, end: Position { line: 51, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 52, column: 9, }, end: Position { line: 52, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 53, column: 23, }, end: Position { line: 53, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 53, column: 27, }, end: Position { line: 53, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Open the firewall.\n", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 55, column: 9, }, }, }, ), ], span: Span { start: Position { line: 53, column: 33, }, end: Position { line: 55, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 31, }, end: Position { line: 56, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 58, column: 7, }, end: Position { line: 58, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 58, column: 21, }, end: Position { line: 58, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 59, column: 9, }, end: Position { line: 59, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 59, column: 16, }, end: Position { line: 59, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 59, column: 22, }, end: Position { line: 59, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 60, column: 9, }, end: Position { line: 60, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 60, column: 19, }, end: Position { line: 60, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 61, column: 16, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "seta rconPassword \"superSecret\" // sets RCON password for remote console\nseta sv_hostname \"My Quake 3 server\" // name that appears in server list\n", span: Span { start: Position { line: 62, column: 1, }, end: Position { line: 64, column: 9, }, }, }, ), ], span: Span { start: Position { line: 61, column: 19, }, end: Position { line: 64, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 65, column: 23, }, end: Position { line: 65, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Extra configuration options. Note that options changed via RCON will not be persisted. To list all possible\noptions, use \"cvarlist 1\" via RCON.\n", span: Span { start: Position { line: 66, column: 1, }, end: Position { line: 68, column: 9, }, }, }, ), ], span: Span { start: Position { line: 65, column: 33, }, end: Position { line: 68, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 58, column: 30, }, end: Position { line: 69, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 71, column: 7, }, end: Position { line: 71, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 71, column: 16, }, end: Position { line: 71, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 72, column: 16, }, end: Position { line: 72, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "either", span: Span { start: Position { line: 72, column: 22, }, end: Position { line: 72, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 72, column: 29, }, end: Position { line: 72, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 72, column: 35, }, end: Position { line: 72, column: 42, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 72, column: 43, }, end: Position { line: 72, column: 48, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 72, column: 49, }, end: Position { line: 72, column: 53, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 73, column: 9, }, end: Position { line: 73, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "defaultBaseq3", span: Span { start: Position { line: 73, column: 19, }, end: Position { line: 73, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 74, column: 9, }, end: Position { line: 74, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalMD", span: Span { start: Position { line: 74, column: 23, }, end: Position { line: 74, column: 32, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Manually downloaded Quake 3 installation directory.", span: Span { start: Position { line: 74, column: 34, }, end: Position { line: 74, column: 85, }, }, }, ), ], span: Span { start: Position { line: 74, column: 33, }, end: Position { line: 74, column: 86, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/q3ds", span: Span { start: Position { line: 75, column: 20, }, end: Position { line: 75, column: 33, }, }, }, ), ], span: Span { start: Position { line: 75, column: 19, }, end: Position { line: 75, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 76, column: 9, }, end: Position { line: 76, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 76, column: 23, }, end: Position { line: 76, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 76, column: 27, }, end: Position { line: 76, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Path to the baseq3 files (pak*.pk3). If this is on the nix store (type = package) all .pk3 files should be saved\nin the top-level directory. If this is on another filesystem (e.g /var/lib/baseq3) the .pk3 files are searched in\n$baseq3/.q3a/baseq3/\n", span: Span { start: Position { line: 77, column: 1, }, end: Position { line: 80, column: 9, }, }, }, ), ], span: Span { start: Position { line: 76, column: 33, }, end: Position { line: 80, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 71, column: 25, }, end: Position { line: 81, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 39, column: 30, }, end: Position { line: 82, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 13, }, end: Position { line: 83, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 85, column: 3, }, end: Position { line: 85, column: 9, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "baseq3InStore", span: Span { start: Position { line: 86, column: 5, }, end: Position { line: 86, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 86, column: 21, }, end: Position { line: 86, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "typeOf", span: Span { start: Position { line: 86, column: 30, }, end: Position { line: 86, column: 36, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 86, column: 37, }, end: Position { line: 86, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 86, column: 41, }, end: Position { line: 86, column: 47, }, }, }, ), ], default: None, }, ), ], }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "set", span: Span { start: Position { line: 86, column: 52, }, end: Position { line: 86, column: 55, }, }, }, ), ], span: Span { start: Position { line: 86, column: 51, }, end: Position { line: 86, column: 56, }, }, }, ), }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 87, column: 6, }, end: Position { line: 87, column: 10, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 87, column: 11, }, end: Position { line: 87, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 87, column: 15, }, end: Position { line: 87, column: 21, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 88, column: 5, }, end: Position { line: 88, column: 15, }, }, }, ), Raw( PartRaw { content: "firewall", span: Span { start: Position { line: 88, column: 16, }, end: Position { line: 88, column: 24, }, }, }, ), Raw( PartRaw { content: "allowedUDPPorts", span: Span { start: Position { line: 88, column: 25, }, end: Position { line: 88, column: 40, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 88, column: 43, }, end: Position { line: 88, column: 47, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 88, column: 48, }, end: Position { line: 88, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 88, column: 52, }, end: Position { line: 88, column: 64, }, }, }, ), ], default: None, }, ), List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 88, column: 67, }, end: Position { line: 88, column: 70, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 88, column: 71, }, end: Position { line: 88, column: 75, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 88, column: 65, }, end: Position { line: 88, column: 77, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 90, column: 5, }, end: Position { line: 90, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 90, column: 13, }, end: Position { line: 90, column: 21, }, }, }, ), Raw( PartRaw { content: "q3ds", span: Span { start: Position { line: 90, column: 22, }, end: Position { line: 90, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 91, column: 7, }, end: Position { line: 91, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Quake 3 dedicated server", span: Span { start: Position { line: 91, column: 22, }, end: Position { line: 91, column: 46, }, }, }, ), ], span: Span { start: Position { line: 91, column: 21, }, end: Position { line: 91, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 92, column: 7, }, end: Position { line: 92, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 92, column: 21, }, end: Position { line: 92, column: 38, }, }, }, ), ], span: Span { start: Position { line: 92, column: 20, }, end: Position { line: 92, column: 39, }, }, }, ), ], span: Span { start: Position { line: 92, column: 18, }, end: Position { line: 92, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "networking.target", span: Span { start: Position { line: 93, column: 18, }, end: Position { line: 93, column: 35, }, }, }, ), ], span: Span { start: Position { line: 93, column: 17, }, end: Position { line: 93, column: 36, }, }, }, ), ], span: Span { start: Position { line: 93, column: 15, }, end: Position { line: 93, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 95, column: 7, }, end: Position { line: 95, column: 18, }, }, }, ), Raw( PartRaw { content: "HOME", span: Span { start: Position { line: 95, column: 19, }, end: Position { line: 95, column: 23, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "baseq3InStore", span: Span { start: Position { line: 95, column: 29, }, end: Position { line: 95, column: 42, }, }, }, ), then: Identifier( Identifier { id: "home", span: Span { start: Position { line: 95, column: 48, }, end: Position { line: 95, column: 52, }, }, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 95, column: 58, }, end: Position { line: 95, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 95, column: 62, }, end: Position { line: 95, column: 68, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 95, column: 26, }, end: Position { line: 95, column: 68, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 97, column: 7, }, end: Position { line: 97, column: 20, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 97, column: 28, }, end: Position { line: 97, column: 31, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 98, column: 9, }, end: Position { line: 98, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 98, column: 20, }, end: Position { line: 98, column: 26, }, }, }, ), ], span: Span { start: Position { line: 98, column: 19, }, end: Position { line: 98, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 99, column: 9, }, end: Position { line: 99, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 99, column: 23, }, end: Position { line: 99, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "WorkingDirectory", span: Span { start: Position { line: 100, column: 9, }, end: Position { line: 100, column: 25, }, }, }, ), ], to: Identifier( Identifier { id: "home", span: Span { start: Position { line: 100, column: 28, }, end: Position { line: 100, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ReadOnlyPaths", span: Span { start: Position { line: 103, column: 9, }, end: Position { line: 103, column: 22, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "baseq3InStore", span: Span { start: Position { line: 103, column: 28, }, end: Position { line: 103, column: 41, }, }, }, ), then: Identifier( Identifier { id: "home", span: Span { start: Position { line: 103, column: 47, }, end: Position { line: 103, column: 51, }, }, }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 103, column: 57, }, end: Position { line: 103, column: 60, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 103, column: 61, }, end: Position { line: 103, column: 67, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 103, column: 25, }, end: Position { line: 103, column: 67, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStartPre", span: Span { start: Position { line: 104, column: 9, }, end: Position { line: 104, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 104, column: 24, }, end: Position { line: 104, column: 38, }, }, }, ), arguments: [ UnaryOperation( UnaryOperation { operator: Not, operand: Identifier( Identifier { id: "baseq3InStore", span: Span { start: Position { line: 104, column: 41, }, end: Position { line: 104, column: 54, }, }, }, ), span: Span { start: Position { line: 104, column: 40, }, end: Position { line: 104, column: 54, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "+", span: Span { start: Position { line: 104, column: 57, }, end: Position { line: 104, column: 75, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 104, column: 60, }, end: Position { line: 104, column: 64, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "coreutils", span: Span { start: Position { line: 104, column: 65, }, end: Position { line: 104, column: 74, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/cp ", span: Span { start: Position { line: 104, column: 57, }, end: Position { line: 104, column: 83, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 104, column: 85, }, end: Position { line: 104, column: 95, }, }, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 104, column: 57, }, end: Position { line: 104, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 104, column: 99, }, end: Position { line: 104, column: 102, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "baseq3", span: Span { start: Position { line: 104, column: 103, }, end: Position { line: 104, column: 109, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/.q3a/baseq3/nix.cfg", span: Span { start: Position { line: 104, column: 57, }, end: Position { line: 104, column: 130, }, }, }, ), ], span: Span { start: Position { line: 104, column: 56, }, end: Position { line: 104, column: 131, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 106, column: 9, }, end: Position { line: 106, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 106, column: 24, }, end: Position { line: 106, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ioquake3", span: Span { start: Position { line: 106, column: 29, }, end: Position { line: 106, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/ioq3ded.x86_64 +exec nix.cfg", span: Span { start: Position { line: 106, column: 22, }, end: Position { line: 106, column: 67, }, }, }, ), ], span: Span { start: Position { line: 106, column: 21, }, end: Position { line: 106, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 97, column: 33, }, end: Position { line: 107, column: 8, }, }, }, ), span: Span { start: Position { line: 97, column: 23, }, end: Position { line: 107, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 90, column: 29, }, end: Position { line: 108, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 87, column: 22, }, end: Position { line: 109, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 85, column: 12, }, end: Position { line: 109, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 111, column: 3, }, end: Position { line: 111, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 111, column: 8, }, end: Position { line: 111, column: 19, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 111, column: 27, }, end: Position { line: 111, column: 38, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "f4814n", span: Span { start: Position { line: 111, column: 42, }, end: Position { line: 111, column: 48, }, }, }, ), ], span: Span { start: Position { line: 111, column: 40, }, end: Position { line: 111, column: 50, }, }, }, ), span: Span { start: Position { line: 111, column: 22, }, end: Position { line: 111, column: 50, }, }, }, ), }, ), ], span: Span { start: Position { line: 37, column: 4, }, end: Position { line: 112, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 112, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 112, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 112, column: 2, }, }, }, )