Infini-OPTIPLEX: setup Factorio server
This commit is contained in:
parent
37a653325e
commit
e66f46099f
2 changed files with 17 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
./hardware-configuration.nix
|
||||
./filesystems.nix
|
||||
|
||||
./factorio.nix
|
||||
./thelounge.nix
|
||||
./vaultwarden.nix
|
||||
];
|
||||
|
|
16
hosts/Infini-OPTIPLEX/factorio.nix
Normal file
16
hosts/Infini-OPTIPLEX/factorio.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue