Implement Minecraft server

This commit is contained in:
Root User 2026-03-19 22:15:00 +01:00
parent 5a99568c60
commit ec50a86329
Signed by: root
GPG key ID: 087F0A95E5766D72
7 changed files with 324 additions and 11 deletions

View file

@ -181,10 +181,12 @@ else
exit 1
fi
# Step 4: Rebuild system
print_info "Rebuilding NixOS system..."
# Step 4: Rebuild system using local flake
# Compute repository root (three levels up from this script: .../nix-system-configs/modules/scripts -> repo root)
FLAKE_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
print_info "Rebuilding NixOS system using flake at ${BOLD}${FLAKE_ROOT}${RESET}..."
echo ""
if sudo nixos-rebuild switch --upgrade-all; then
if sudo NIX_CONFIG='experimental-features = nix-command flakes' nixos-rebuild switch --upgrade-all --flake "${FLAKE_ROOT}#${selected_system}"; then
print_success "System rebuild completed successfully!"
else
print_error "System rebuild failed"