From 930adc628cb4e2d262f392088a5dcb2f1d9d43b7 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 13 Mar 2021 12:55:32 -0500 Subject: Update valheim server --- modules/valheim.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/valheim.nix b/modules/valheim.nix index bdfb813..a151075 100644 --- a/modules/valheim.nix +++ b/modules/valheim.nix @@ -16,6 +16,10 @@ in type = lib.types.str; default = "valheim"; }; + statusPort = lib.mkOption { + type = lib.types.int; + default = 12817; + }; }; }; @@ -29,6 +33,7 @@ in serviceConfig = { DynamicUser = true; StateDirectory = cfg.stateDir; + KillSignal = "SIGINT"; }; environment = { @@ -40,7 +45,7 @@ in export templdpath=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH export SteamAppId=892970 - steam-run ./valheim_server.x86_64 -name "doomsday" -port 3400 -world "doomsday" -password "$(cat ${statePath}/password.txt)" -savedir ${statePath} + steam-run ./valheim_server.x86_64 -name "doomsday" -port 3400 -world "doomsday" -password "$(cat ${statePath}/password.txt)" -savedir ${statePath} -nographics -batchmode ''; }; }; -- cgit v1.2.3