feat: configure minecraft and zomboid
runner nix smoke / nix label and flake smoke (push) Failing after 1m13s

This commit is contained in:
2026-09-19 07:37:19 +00:00
parent 83cf9ff32f
commit 2bd466b652
16 changed files with 871 additions and 49 deletions
+5 -15
View File
@@ -64,6 +64,7 @@ in {
(import ./attic.nix { inherit flake self inputs domain; })
(import ./containers.nix { inherit flake self inputs; })
./experimental-sshd.nix
./minecraft-wow-proxy.nix
(import ./ente.nix { inherit domain; })
(import ./immich.nix { inherit domain; })
(import ./mechabellum.nix { inherit flake self inputs domain; })
@@ -106,7 +107,7 @@ in {
serverName = "servertest";
serverPropertiesFile = /var/lib/project-zomboid/server-password.ini;
serverProperties = {
Map = "map_distanciado;Muldraugh, KY";
Map = "vehicle_interior_arcadia75;Muldraugh, KY";
DoLuaChecksum = false;
Public = true;
AntiCheatSafety = 4;
@@ -140,18 +141,12 @@ in {
};
};
workshopItems = [
"3773972040" # Arcadia RV Interiors B42.20
"2210760610" # Cryogenic Winter +Easy/Hard Modes
"3676456221" # Lua Digital Watch Framework
"3600401184" # Realistic Temperature Mod
"3387824513" # Material Weight Reducer
"3387539308" # Auto Mechanics
"3402491515" # Tsar's Common Library B42
"3403490889" # Standardized Vehicle Upgrades 3 - Core
"3520758551" # More Car Features + Spawn Zones Expansion
"3110911330" # '87 Ford B700/F700 Trucks
"3413150945" # More Damaged Objects
"3554424111" # U.S. M998 Humvee
"2705406713" # Military Tool Kit
"3512708849" # Shotgun Trajectory
"3401576145" # Firearm Models: Redux
"3401134276" # Vanilla Gear Expanded
@@ -162,19 +157,14 @@ in {
"2812326159" # Spongie's Open Jackets
];
mods = [
"\\Military_Tool_Kit"
"\\ArcadiaRVInterior_B42_MP"
"\\ArcadiaRVInterior_B42_Vanilla"
"\\CryogenicWinter2NormalMode"
"\\LuaDigitalWatchUI"
"\\RC_RealisticColdMod"
"\\Material Weight Reducer"
"\\Ammunition Weight Reducer"
"\\AutoMechanics"
"\\tsarslib"
"\\StandardizedVehicleUpgrades3Core"
"\\WayMoreCars"
"\\87fordB700"
"\\MoreDamagedObjects"
"\\U.S. M998 Humvee by Papa_Chad"
"\\ShotgunTrajectory"
"\\FMR"
"\\VanillaGearExpanded"
@@ -0,0 +1,43 @@
{ pkgs, ... }:
{
# Public entry point; the backend arrives through a restricted reverse tunnel.
networking.firewall.allowedTCPPorts = [ 25568 ];
users.groups.mc-wow-relay = { };
users.users.mc-wow-relay = {
isSystemUser = true;
group = "mc-wow-relay";
openssh.authorizedKeys.keys = [
"restrict,port-forwarding,permitlisten=\"127.0.0.1:25577\" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKNWWegOVTOF3EOmam32iP7sMybULMTxsXuC+cEGITQ8 minecraft-wow-relay"
];
};
services.openssh.extraConfig = ''
Match User mc-wow-relay
ClientAliveInterval 15
ClientAliveCountMax 3
AllowTcpForwarding remote
PermitListen 127.0.0.1:25577
AllowAgentForwarding no
X11Forwarding no
PermitTTY no
ForceCommand ${pkgs.coreutils}/bin/false
Match all
'';
systemd.sockets.minecraft-wow-proxy = {
description = "WorldOfSosal WoW public Minecraft port";
wantedBy = [ "sockets.target" ];
listenStreams = [ "0.0.0.0:25568" ];
};
systemd.services.minecraft-wow-proxy = {
description = "Forward Minecraft to the neuro reverse tunnel";
requires = [ "minecraft-wow-proxy.socket" ];
after = [ "minecraft-wow-proxy.socket" ];
serviceConfig = {
ExecStart = "${pkgs.systemd}/lib/systemd/systemd-socket-proxyd 127.0.0.1:25577";
DynamicUser = true;
NoNewPrivileges = true;
ProtectSystem = "strict";
ProtectHome = true;
PrivateTmp = true;
};
};
}
@@ -8,6 +8,7 @@
<body>
<main>
<h1>WorldOfSosal</h1>
<p><a href="https://store.hectic-lab.com/minecraft/world-of-sosal/">Install in Prism with automatic mod updates</a></p>
<p><a href="https://store.hectic-lab.com/world-of-sosal/latest.mrpack">Download latest pack</a></p>
<p><a href="prismlauncher://import?url=https%3A%2F%2Fstore.hectic-lab.com%2Fworld-of-sosal%2Flatest.mrpack">Import latest pack in Prism Launcher</a></p>
<p><a href="https://store.hectic-lab.com/world-of-sosal/SHA256SUMS">SHA-256 checksums</a></p>