mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-14 02:38:58 +02:00
Implement Minecraft server
This commit is contained in:
parent
5a99568c60
commit
ec50a86329
7 changed files with 324 additions and 11 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue