vps: enable factorio

This commit is contained in:
Lgmrszd 2024-11-28 22:03:04 +04:00
parent d23de1e07a
commit 3165ed8533
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 17 additions and 0 deletions

View file

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