- Implement nomarchy-version, nomarchy-debug, nomarchy-reinstall, nomarchy-rollback, nomarchy-upload-log - Implement nomarchy-refresh-hyprland and nomarchy-refresh-waybar - Update docs/SCRIPTS.md with 'kept' status for new scripts
20 lines
534 B
Bash
Executable File
20 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Nomarchy Rollback Script
|
|
# Reverts the system to a previous working generation.
|
|
|
|
set -e
|
|
|
|
if command -v snapper &>/dev/null; then
|
|
echo "BTRFS Snapper detected. Listing snapshots..."
|
|
sudo snapper list
|
|
echo ""
|
|
echo "To rollback to a specific snapshot, run: sudo snapper rollback <number>"
|
|
echo "Or to rollback the current NixOS generation only:"
|
|
fi
|
|
|
|
echo "Rolling back NixOS generation..."
|
|
sudo nixos-rebuild rollback
|
|
|
|
echo "Rollback complete. Please reboot if you performed a BTRFS rollback."
|