1
0
Fork 0

feat(minecraft): Add BlueMap

This commit is contained in:
Avery 2025-07-18 18:50:34 +00:00
parent 5fdbe34741
commit cbef8398ab
Signed by: Avery
GPG key ID: B684FD451B692E04
2 changed files with 92 additions and 74 deletions

View file

@ -1,7 +1,7 @@
{
tcp = {
minecraft = 13914;
minecraft-fabric-prod-bluemap = 8100;
};
adguardhome-dns = 53;
adguardhome-http = 3001;

View file

@ -27,7 +27,8 @@ in {
environment.systemPackages = with pkgs; [ mcrcon ];
networking.firewall.allowedTCPPorts = with ports.tcp; [ minecraft ];
nixpkgs.overlays = [ inputs.nix-minecraft.overlay ];
services.minecraft-servers = {
services = {
minecraft-servers = {
enable = true;
eula = true;
dataDir = "/mnt/ssd-01/minecraft";
@ -97,6 +98,12 @@ in {
sha512 =
"cd991acee93c074912f2934b5a9c3967be2f1e9157ca5a7254fd3fce8d280c5aa9a3ab06d3ee19f06c5111181853cf12048d000bf8b9f722c902c080fe258a97";
};
"mods/BlueMap.jar" = pkgs.fetchurl {
url =
"https://cdn.modrinth.com/data/swbUV1cr/versions/fB6f4XRA/bluemap-5.9-fabric.jar";
sha512 =
"a76a2b1019efe35175f8df91f69ec7ec58e26f148ea9bba4f1eb9bb1b16ffa6f395b76c1362f452d33f94f0f1045403da3b04f25bc6d40feadbc58f64d34f1e4";
};
};
files = {
"ops.json".value = playersToOps (with players; [ engullejamones ]);
@ -108,6 +115,17 @@ in {
};
};
};
nginx.virtualHosts."minecraft.rcia.dev" = {
locations."/".return = "307 https://minecraft.rcia.dev/fabric_prod/";
locations."/fabric_prod".return =
"308 https://minecraft.rcia.dev/fabric_prod/";
locations."~/fabric_prod/(.*)$".proxyPass = "http://127.0.0.1:${
toString ports.tcp.minecraft-fabric-prod-bluemap
}/$1";
forceSSL = true;
useACMEHost = "rcia.dev";
};
};
sops = {
secrets."minecraft_rcon".owner = "minecraft";
templates."minecraft.env" = {