You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be said about most of our services. It'd be nice if we could abstract over common service patterns like the enable option and port settings. I.e., some sort of function that produces the { config, ... }: { options = ...; config = ... } structure but takes care of automatically managing common repetitive crap like this.
Ideal to me feels like:
Global setting, firewall.openServicePortsByDefault, defaulting to false
Every service (via some abstraction over services) has a service.foo.openPorts, with a default value of firewall.openServicePortsByDefault
Now if you set firewall.openServicePortsByDefault = true;, services open ports by default, but you can opt individual services out by setting service.foo.openPorts = false;
Add a
openPortsInFirewall
option, with a default oftrue
. It's pretty pointless to run a matrix server without connecting to other ones.The text was updated successfully, but these errors were encountered: