Infini-OPTIPLEX: setup Factorio server

This commit is contained in:
Infinidoge 2024-02-03 04:57:18 -05:00
parent 37a653325e
commit e66f46099f
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 17 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./hardware-configuration.nix
./filesystems.nix
./factorio.nix
./thelounge.nix
./vaultwarden.nix
];

View file

@ -0,0 +1,16 @@
{ config, private, ... }:
{
persist.directories = [ "/var/lib/factorio" ];
services.factorio = {
enable = true;
openFirewall = true;
loadLatestSave = true;
admins = [ "Infinidoge" ];
game-name = "Hacktorio";
game-password = private.variables.factorio-password;
};
}