added port 43391 to TCP/UDP allowed

i use this for locally hosting minecraft servers via the Open To LAN
feature, UDP is required for the Simple Voice Chat mod
sadly this does not seem to work and i havent a clue why, but I am
leaving this port open for now

SVC works perfectly with the Essential mod hosting
This commit is contained in:
Gabriella Bere 2025-04-12 03:29:40 +01:00
parent d763c2a257
commit 0be67ad22f

View file

@ -1,15 +1,11 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ {
lib, lib,
pkgs, pkgs,
... ...
}: }: {
{
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -32,9 +28,9 @@
]; ];
}; };
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = ["amdgpu"];
boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ]; boot.extraModulePackages = [pkgs.linuxPackages.v4l2loopback];
boot.kernelModules = [ "v4l2loopback" ]; boot.kernelModules = ["v4l2loopback"];
networking.hostName = "gabbielaptop"; # Define your hostname. networking.hostName = "gabbielaptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -45,7 +41,7 @@
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
enable32Bit = true; enable32Bit = true;
extraPackages = [ pkgs.stable.rocmPackages.clr.icd ]; # Needed for davinci-resolve to utilize the gpu, otherwise it refuses to launch extraPackages = [pkgs.stable.rocmPackages.clr.icd]; # Needed for davinci-resolve to utilize the gpu, otherwise it refuses to launch
}; };
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -81,7 +77,7 @@
}; };
programs.regreet = { programs.regreet = {
enable = true; enable = true;
cageArgs = [ "-m" "last" ]; cageArgs = ["-m" "last"];
}; };
# Enable the Hyprland WM functionality for NixOS (xdg portals etc.) # Enable the Hyprland WM functionality for NixOS (xdg portals etc.)
@ -187,7 +183,7 @@
services.protonmail-bridge = { services.protonmail-bridge = {
enable = true; enable = true;
path = [ pkgs.gnome-keyring ]; path = [pkgs.gnome-keyring];
logLevel = "debug"; logLevel = "debug";
}; };
@ -221,7 +217,10 @@
4455 # used for OBS websocket 4455 # used for OBS websocket
7777 # used for Satisfactory Server 7777 # used for Satisfactory Server
]; ];
networking.firewall.allowedUDPPorts = [ 7777 ]; networking.firewall.allowedUDPPorts = [
7777 # # used for Satisfactory Server
43391 # used to forward simple voice chat traffic to minecraft.gabbie.blue:33991
];
networking.firewall.allowedUDPPortRanges = [ networking.firewall.allowedUDPPortRanges = [
{ {
from = 45000; from = 45000;