mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-01-10 23:27:44 +01:00
vps: override factorio version
This commit is contained in:
parent
3165ed8533
commit
191a11bde9
2 changed files with 22 additions and 3 deletions
18
hosts/vps1/services/factorio-versions.json
Normal file
18
hosts/vps1/services/factorio-versions.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue