From 8ded91166ebb8acc032bf89a64394f1700ac949a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Wed, 12 Mar 2025 10:07:40 +0100 Subject: [PATCH] chore: disable firewall for gaming specialisation --- SwarselSystems.org | 3 ++- profiles/nixos/optional/gaming.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 6db26c8..890abff 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -8099,11 +8099,12 @@ These sets of configuration do not need to be deployed on every host, for a mult This opens a few gaming ports and installs the steam configuration suite for gaming. There are more options in [[#h:84fd7029-ecb6-4131-9333-289982f24ffa][Gaming]] (home-manager side). #+begin_src nix :tangle profiles/nixos/optional/gaming.nix - { pkgs, ... }: + { pkgs, lib, ... }: { specialisation = { gaming.configuration = { networking = { + firewall.enable = lib.mkForce false; firewall = { allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma; allowedTCPPorts = [ ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard diff --git a/profiles/nixos/optional/gaming.nix b/profiles/nixos/optional/gaming.nix index edbe483..38f1c0e 100644 --- a/profiles/nixos/optional/gaming.nix +++ b/profiles/nixos/optional/gaming.nix @@ -1,8 +1,9 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { specialisation = { gaming.configuration = { networking = { + firewall.enable = lib.mkForce false; firewall = { allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma; allowedTCPPorts = [ ]; # 34197: factorio; 4380 27036 14242: barotrauma; 51820: wireguard