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

@ -21,6 +21,7 @@ in
./services/authentik.nix
./services/git.nix
./services/mailserver.nix
./services/factorio.nix
./akkotest.nix
(fetchTarball { url = "https://github.com/cariandrum22/nixos-vscode-server/tarball/support-for-new-dir-structure-of-vscode-server"; sha256 = "1sp4h0nb7dh7mcm8vdflihv76yz8azf5zifkcbxhq7xz48c8k5pd"; })
@ -160,5 +161,7 @@ in
shell = pkgs.fish;
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.11";
}

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";
};
}