Merge pull request #233 from naturallaw777/copilot/fix-99053422-1193689005-4a507209-0427-496c-b028-fcf5e0d153d0

[WIP] Move hardcoded firewall ports from configuration.nix to their respective modules
This commit is contained in:
Sovran_Systems
2026-04-14 08:46:21 -05:00
committed by GitHub
4 changed files with 8 additions and 3 deletions

View File

@@ -31,8 +31,7 @@
networking.hostName = "nixos"; networking.hostName = "nixos";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.firewall.enable = true; networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 8448 3051 ]; networking.firewall.allowedUDPPorts = [ 5353 ];
networking.firewall.allowedUDPPorts = [ 8448 3051 5353 ];
# ── Avahi (mDNS) ─────────────────────────────────────────── # ── Avahi (mDNS) ───────────────────────────────────────────
services.avahi = { services.avahi = {

View File

@@ -99,6 +99,9 @@ lib.mkIf config.sovran_systemsOS.services.bitcoin {
''; '';
}; };
networking.firewall.allowedTCPPorts = [ 3051 ];
networking.firewall.allowedUDPPorts = [ 3051 ];
sovran_systemsOS.domainRequirements = [ sovran_systemsOS.domainRequirements = [
{ name = "btcpayserver"; label = "BTCPay Server"; example = "pay.yourdomain.com"; } { name = "btcpayserver"; label = "BTCPay Server"; example = "pay.yourdomain.com"; }
]; ];

View File

@@ -375,7 +375,7 @@ in
environment.systemPackages = [ sovran-hub-web ]; environment.systemPackages = [ sovran-hub-web ];
networking.firewall.allowedTCPPorts = [ 3051 8937 60847 ]; networking.firewall.allowedTCPPorts = [ 8937 60847 ];
# ── Auto-launch Hub in browser on login ─────────────────────── # ── Auto-launch Hub in browser on login ───────────────────────
environment.etc."xdg/autostart/sovran-hub-autolaunch.desktop".text = '' environment.etc."xdg/autostart/sovran-hub-autolaunch.desktop".text = ''

View File

@@ -251,6 +251,9 @@ CREDS
''; '';
}; };
networking.firewall.allowedTCPPorts = [ 8448 ];
networking.firewall.allowedUDPPorts = [ 8448 ];
sovran_systemsOS.domainRequirements = [ sovran_systemsOS.domainRequirements = [
{ name = "matrix"; label = "Matrix Synapse"; example = "matrix.yourdomain.com"; } { name = "matrix"; label = "Matrix Synapse"; example = "matrix.yourdomain.com"; }
]; ];