add factorio server to public-cof

This commit is contained in:
gabriel-doriath-dohler 2021-11-13 01:52:22 +01:00
parent 06e84b79b4
commit 7dd205ad90
2 changed files with 17 additions and 0 deletions

View file

@ -10,12 +10,15 @@
./networking.nix
./nextcloud.nix
./minecraft.nix
./factorio.nix
# TODO monitoring
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"minecraft-server"
"factorio-headless"
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -0,0 +1,14 @@
{ ... }:
{
services.factorio = {
enable = true;
admins = [ ];
username = "AGB";
password = "Je vais voter pour le club réseau";
description = "This is a test and it will break";
game-name = "Factorio for AGB";
openFirewall = true;
};
networking.firewall.allowedUDPPorts = [ 34197 ];
}