Add port 3000 to allowed TCP
Change-Id: I2399980b2fc0fd33d0c7a444a3cea977c20e6b67
Reviewed-on: https://git.clicks.codes/c/Coded/nixConfig/+/95
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/networking.nix b/modules/networking.nix
index ef432e7..c04cf72 100644
--- a/modules/networking.nix
+++ b/modules/networking.nix
@@ -1,11 +1,20 @@
{
- networking.hostName = "codedPC";
- networking.networkmanager.enable = true;
+ networking = {
+ hostName = "codedPC";
+ networkmanager.enable = true;
- networking.hosts = {
- "192.168.0.4" = [ "CodedPi" ];
- "192.168.0.5" = [ "SamuelDesktop" ];
- "192.168.0.6" = [ "a1d2" ];
- "localhost:5000" = [ "ollama" ];
+ hosts = {
+ "192.168.0.4" = [ "CodedPi" ];
+ "192.168.0.5" = [ "SamuelDesktop" ];
+ "192.168.0.6" = [ "a1d2" ];
+ "localhost:5000" = [ "ollama" ];
+ };
+
+ firewall = {
+ enable = true;
+ allowedTCPPorts = [ 3000 ];
+ };
};
+
+
}