From 0be67ad22f95f81b49aa42a83dda5fcf64910cc2 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Sat, 12 Apr 2025 03:29:40 +0100 Subject: [PATCH] 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 --- hosts/gabbielaptop/configuration.nix | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/hosts/gabbielaptop/configuration.nix b/hosts/gabbielaptop/configuration.nix index 380378e..858285d 100644 --- a/hosts/gabbielaptop/configuration.nix +++ b/hosts/gabbielaptop/configuration.nix @@ -1,15 +1,11 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). - { lib, pkgs, ... -}: - -{ - +}: { imports = [ ./hardware-configuration.nix ]; @@ -32,9 +28,9 @@ ]; }; - boot.initrd.kernelModules = [ "amdgpu" ]; - boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ]; - boot.kernelModules = [ "v4l2loopback" ]; + boot.initrd.kernelModules = ["amdgpu"]; + boot.extraModulePackages = [pkgs.linuxPackages.v4l2loopback]; + boot.kernelModules = ["v4l2loopback"]; networking.hostName = "gabbielaptop"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -45,7 +41,7 @@ hardware.graphics = { enable = 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 networking.networkmanager.enable = true; @@ -81,12 +77,12 @@ }; programs.regreet = { enable = true; - cageArgs = [ "-m" "last" ]; + cageArgs = ["-m" "last"]; }; # Enable the Hyprland WM functionality for NixOS (xdg portals etc.) programs.hyprland.enable = true; - + # Enable fwupd for BIOS updates services.fwupd.enable = true; @@ -187,7 +183,7 @@ services.protonmail-bridge = { enable = true; - path = [ pkgs.gnome-keyring ]; + path = [pkgs.gnome-keyring]; logLevel = "debug"; }; @@ -221,7 +217,10 @@ 4455 # used for OBS websocket 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 = [ { from = 45000; @@ -229,5 +228,5 @@ } ]; - system.stateVersion = "24.05"; + system.stateVersion = "24.05"; }