add minecraft
All checks were successful
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Successful in 7m12s
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 16s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m20s

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2025-01-26 00:39:51 -05:00
parent 8d3ff73fdc
commit 5d86042624
No known key found for this signature in database
GPG Key ID: 47940175096C1330
2 changed files with 19 additions and 3 deletions

View File

@ -15,7 +15,7 @@
#./foundry.nix
./glances.nix
# ./haproxy.nix
# ./minecraft.nix
./minecraft.nix
./nextcloud.nix
# ./postgres.nix
# ./restic.nix

View File

@ -9,6 +9,7 @@ let
divinejourney = "dj.alicehuston.xyz";
rlcraft = "rlcraft.alicehuston.xyz";
arcanum-institute = "arcanum.alicehuston.xyz";
bcg-plus = "bcg.alicehuston.xyz";
};
defaultServer = "rlcraft";
@ -28,7 +29,6 @@ let
defaultOptions = [
"--stop-signal=SIGTERM"
"--stop-timeout=30m"
"--restart=unless-stopped"
"--network=minecraft-net"
];
@ -40,7 +40,6 @@ in
mc-router = {
image = "itzg/mc-router:latest";
extraOptions = [
"--restart=always"
"--network=haproxy-net"
"--network=minecraft-net"
];
@ -68,6 +67,23 @@ in
log-driver = "local";
environmentFiles = [ config.sops.secrets."docker/minecraft".path ];
};
bcg-plus = {
image = "itzg/minecraft-server:java17";
volumes = [
"${minecraft_path}/bcg-plus/modpacks:/modpacks:ro"
"${minecraft_path}/bcg-plus/data:/data"
];
hostname = "bcg-plus";
environment = defaultEnv // {
VERSION = "1.17";
CF_SLUG = "bcg";
DIFFICULTY = "normal";
# ENABLE_COMMAND_BLOCK = "true";
};
extraOptions = defaultOptions;
log-driver = "local";
environmentFiles = [ config.sops.secrets."docker/minecraft".path ];
};
};
sops = {