diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-03-13 12:55:32 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-03-13 12:55:32 -0500 |
commit | 930adc628cb4e2d262f392088a5dcb2f1d9d43b7 (patch) | |
tree | 1c3810f65a7c0ada7b10d91a2b345c2e6465e49e | |
parent | 712adf8457cf2429e81fe339f5be350ce27d40d0 (diff) |
Update valheim server
-rw-r--r-- | modules/valheim.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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 ''; }; }; |