From 7c2c8191ff65f3861bb618c6880fc832107d879a Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Wed, 28 Oct 2026 12:26:05 -0500 Subject: [PATCH] feat(just): add rebuild recipe (update all inputs, then switch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit switch already shells to ./s; Drew asked for a single command for the rebuild-that-updates-inputs path. rebuild = update-inputs-all then switch, as a shebang recipe so the order is deterministic. just-recipes.json intentionally NOT regenerated here: regeneration embeds the generating checkout absolute path (source field) and the committed file is already stale against current root.just from another machine — that cleanup is its own change. --- root.just | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/root.just b/root.just index c8031678ca..20dbc61a2a 100644 --- a/root.just +++ b/root.just @@ -222,6 +222,14 @@ stage-docs-all *args: switch: ./s +# Update all flake inputs, then rebuild and switch NixOS configuration +[group('nixos')] +rebuild: + #!/usr/bin/env bash + set -euo pipefail + just update-inputs-all + just switch + # ============================================================================= # Mail Worker # =============================================================================