nix-cfg/hosts/vps1/services/factorio.nix

16 lines
444 B
Nix
Raw Permalink Normal View History

2024-11-29 07:34:34 +01:00
{ config, data, pkgs, ...}:
2024-11-28 19:03:04 +01:00
{
services.factorio = {
enable = true;
2024-11-29 07:34:34 +01:00
package = (pkgs.factorio-headless.override { versionsJson = ./factorio-versions.json; });
2024-11-28 19:03:04 +01:00
public = false;
game-name = "Lgm's Factorio Game";
openFirewall = true;
autosave-interval = 5;
extraSettings = {
2024-11-29 07:34:34 +01:00
autosave_slots = 8;
2024-11-28 19:03:04 +01:00
};
extraSettingsFile = "/var/lib/${config.services.factorio.stateDirName}/server-settings-extra.json";
};
2024-11-29 07:34:34 +01:00
}