vps: override factorio version

This commit is contained in:
Lgmrszd 2024-11-29 10:34:34 +04:00
parent 3165ed8533
commit 191a11bde9
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 22 additions and 3 deletions

View file

@ -0,0 +1,18 @@
{
"x86_64-linux": {
"headless": {
"stable": {
"candidateHashFilenames": [
"factorio-headless_linux_2.0.21.tar.xz",
"factorio_headless_x64_2.0.21.tar.xz"
],
"name": "factorio_headless_x64-2.0.21.tar.xz",
"needsAuth": false,
"sha256": "1d6d2785006d6a8d9d5fdcdaa7097a189ec35ba95f3521025dc4e046f7a1398e",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/2.0.21/headless/linux64",
"version": "2.0.21"
}
}
}
}

View file

@ -1,14 +1,15 @@
{ config, data, ...}:
{ config, data, pkgs, ...}:
{
services.factorio = {
enable = true;
package = (pkgs.factorio-headless.override { versionsJson = ./factorio-versions.json; });
public = false;
game-name = "Lgm's Factorio Game";
openFirewall = true;
autosave-interval = 5;
extraSettings = {
autosave-slots = 8;
autosave_slots = 8;
};
extraSettingsFile = "/var/lib/${config.services.factorio.stateDirName}/server-settings-extra.json";
};
}
}