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.
This commit is contained in:
Gabriel Arazas 2024-09-13 17:21:29 +08:00
parent 18a5b73978
commit d16dd2d575
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -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;
};
};
})
]);