This commit is contained in:
2025-08-14 18:24:28 -05:00
parent bc9e1e824b
commit a28a03548c
2 changed files with 8 additions and 1 deletions

View File

@@ -217,7 +217,7 @@
pihole.enable = false; #broken pihole.enable = false; #broken
code-server.enable = false; code-server.enable = false;
novnc.enable = true; novnc.enable = true;
minecraft.enable = false; #wont connect minecraft.enable = true; #wont connect
sandbox.enable = false; sandbox.enable = false;
}; };

View File

@@ -9,6 +9,7 @@
config = lib.mkIf config.sysconfig.opts.virtualization.minecraft.enable { config = lib.mkIf config.sysconfig.opts.virtualization.minecraft.enable {
networking.firewall.allowedTCPPorts = [ 25565 ]; networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
@@ -23,6 +24,12 @@
{ {
containerPort = 25565; containerPort = 25565;
hostPort = 25565; hostPort = 25565;
protocol = "tcp";
}
{
containerPort = 25565;
hostPort = 25565;
protocol = "udp";
} }
{ {
containerPort = 25566; containerPort = 25566;