diff options
| author | Max Audron <audron@cocaine.farm> | 2025-07-30 16:53:40 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-07-30 16:53:40 +0200 |
| commit | 80abf0577c962e8d5a71e586f020953f939d90c6 (patch) | |
| tree | dac85c2a5d5d99cbb2fb61824924ddbe8a113042 /modules/games/default.nix | |
| parent | add initial prometheus deployment (diff) | |
enable firewalls
Diffstat (limited to 'modules/games/default.nix')
| -rw-r--r-- | modules/games/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/games/default.nix b/modules/games/default.nix index bbbaba3..fee8e34 100644 --- a/modules/games/default.nix +++ b/modules/games/default.nix @@ -7,6 +7,7 @@ enable = true; package = pkgs.master.factorio-headless; + openFirewall = true; public = false; nonBlockingSaving = true; loadLatestSave = true; @@ -16,6 +17,7 @@ services.xonotic = { enable = true; + openFirewall = true; settings = { net_address = "178.63.224.10"; hostname = "cocaine.farm xonotic $g_xonoticversion"; @@ -27,6 +29,8 @@ package = pkgs.unstable.papermc; eula = true; + openFirewall = true; + declarative = true; whitelist = import ./minecraft_whitelist.nix; jvmOpts = "-Xmx6144M -Xms6144M"; @@ -67,4 +71,6 @@ ]; }; }; + + networking.firewall.allowedTCPPorts = [ 25566 ]; } |
