summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/valheim.nix7
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
'';
};
};