From ae02f319092600efccc8fd814b8158013b2b64a3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 25 Dec 2022 10:13:11 +0100 Subject: [PATCH] Steam link firewall config --- flake.nix | 2 ++ nixos_modules/steam-link.nix | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 nixos_modules/steam-link.nix diff --git a/flake.nix b/flake.nix index 433a397..0f4c654 100644 --- a/flake.nix +++ b/flake.nix @@ -162,6 +162,7 @@ ./nixos_modules/pro_audio.nix ./nixos_modules/sesar.nix ./nixos_modules/pentablet.nix + ./nixos_modules/steam-link.nix { home-manager.users.bertof = import ./thor/hm.nix; } ]; @@ -182,6 +183,7 @@ ./nixos_modules/pro_audio.nix ./nixos_modules/sesar.nix ./nixos_modules/pentablet.nix + ./nixos_modules/steam-link.nix { home-manager.users.bertof = import ./odin/hm.nix; } ]; diff --git a/nixos_modules/steam-link.nix b/nixos_modules/steam-link.nix new file mode 100644 index 0000000..47ce010 --- /dev/null +++ b/nixos_modules/steam-link.nix @@ -0,0 +1,6 @@ +{ + networking.firewall = { + allowedTCPPorts = [ 27036 27037 ]; + allowedUDPPorts = [ 27031 27036 ]; + }; +}