docs: finalize roadmap entries for flake updates and offline resilience
All checks were successful
Check / eval-and-lint (push) Successful in 6m43s

This commit is contained in:
Bernardo Magri
2026-06-01 20:27:25 +01:00
parent 1e6becd42d
commit dd72110b9a
3 changed files with 47 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
#!/usr/bin/env bash
# Nomarchy Full Update Script
# 1. Syncs the local repository (if applicable)
# 2. Performs a full system update (NixOS + Home Manager)
# 1. Removes the installation pin (if present) to follow the rolling release.
# 2. Updates flake inputs (Nomarchy, nixpkgs, etc.) in flake.lock.
# 3. Performs a full system update (NixOS + Home Manager)
set -e
@@ -18,15 +19,17 @@ fi
echo "--- Starting Nomarchy Full Update ---"
# 1. Sync repository if it's a git repo
if [ -d "$REPO_DIR/.git" ]; then
echo "Syncing repository from remote..."
if ! git -C "$REPO_DIR" pull --ff-only; then
echo "Warning: git pull failed. Proceeding with local configuration."
fi
# 1. Unpin the flake if it's currently pinned to the install commit
if grep -q "rev=" "$REPO_DIR/flake.nix"; then
echo "Removing installation pin to follow rolling release..."
sudo sed -i 's/?rev=[a-f0-9]*//g' "$REPO_DIR/flake.nix"
fi
# 2. System update
# 2. Update flake inputs
echo "Updating flake inputs (this may take a moment)..."
sudo nix --extra-experimental-features 'nix-command flakes' flake update --flake "$REPO_DIR"
# 3. System update
nomarchy-sys-update
echo "--- Nomarchy Full Update Complete ---"