From d16dd2d57582a773064168e9ed5bb4d4c8f6e4b1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 13 Sep 2024 17:21:29 +0800 Subject: [PATCH] hosts/ni/networking/setup: open ports 20000-30000 for userland services It's a long story but this would be great to initialize local services from different users. Except that there is only one for the most part anyways. --- configs/nixos/ni/modules/networking/setup.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configs/nixos/ni/modules/networking/setup.nix b/configs/nixos/ni/modules/networking/setup.nix index 85c65d71..df43bd4e 100644 --- a/configs/nixos/ni/modules/networking/setup.nix +++ b/configs/nixos/ni/modules/networking/setup.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, foodogsquaredLib, ... }: let hostCfg = config.hosts.ni; @@ -170,6 +170,13 @@ in protocols = [ "tcp" ]; openFirewall = true; }; + + # This is for user-specific services that would need to be exposed to + # the local network. + userland = { + value = foodogsquaredLib.nixos.makeRange 20000 30000; + openFirewall = true; + }; }; }) ]);