refactor(nixos): simplify SteamCMD server options
This commit is contained in:
@@ -68,33 +68,28 @@
|
||||
|
||||
modules.services.steamcmd = {
|
||||
enable = true;
|
||||
dataDir = "/pikachu/data/steamcmd";
|
||||
steamDir = "/pikachu/data/steamcmd";
|
||||
serviceName = "valheim";
|
||||
appId = 896660;
|
||||
runtimeAppId = 892970;
|
||||
installDir = "/pikachu/data/servers/valheim/main";
|
||||
workingDirectory = "/pikachu/data/servers/valheim/main";
|
||||
group = "storage";
|
||||
dataDirs = [ "/pikachu/media/games/servers/valheim/main" ];
|
||||
packages = [ pkgs.steam-run ];
|
||||
environment = {
|
||||
SteamAppId = "892970";
|
||||
SERVER_PASSWORD = "foobarbaz";
|
||||
};
|
||||
command = [
|
||||
"${pkgs.bash}/bin/bash"
|
||||
"-c"
|
||||
''
|
||||
export LD_LIBRARY_PATH="$PWD/linux64:$LD_LIBRARY_PATH"
|
||||
exec steam-run ./valheim_server.x86_64 \
|
||||
-nographics \
|
||||
-batchmode \
|
||||
-name main \
|
||||
-port 2456 \
|
||||
-world main \
|
||||
-savedir /pikachu/media/games/servers/valheim/main \
|
||||
-password "$SERVER_PASSWORD" \
|
||||
-public 0
|
||||
''
|
||||
stateDir = "/pikachu/media/games/servers/valheim/main";
|
||||
executable = "./valheim_server.x86_64";
|
||||
arguments = [
|
||||
"-nographics"
|
||||
"-batchmode"
|
||||
"-name"
|
||||
"main"
|
||||
"-port"
|
||||
"2456"
|
||||
"-world"
|
||||
"main"
|
||||
"-savedir"
|
||||
"/pikachu/media/games/servers/valheim/main"
|
||||
"-password"
|
||||
"foobarbaz"
|
||||
"-public"
|
||||
"0"
|
||||
];
|
||||
udpPorts = [
|
||||
2456
|
||||
|
||||
Reference in New Issue
Block a user