diff --git a/configuration.nix b/configuration.nix index ac78f15..d7bb46d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -67,6 +67,7 @@ # app (2026-07); the deprecated `codex-app` cask must not be used. "chatgpt" "codex" # Codex CLI; shares ~/.codex/config.toml with the desktop app + "coteditor" # plain-text editor; cask id is one lowercase word "docker-desktop" "grok-build" "opensuperwhisper" # local Whisper dictation; model seed in home.nix diff --git a/flake.lock b/flake.lock index c66234e..8f00637 100644 --- a/flake.lock +++ b/flake.lock @@ -3,16 +3,16 @@ "brew-src": { "flake": false, "locked": { - "lastModified": 1788591592, - "narHash": "sha256-NbwVKwKLFl0oXub7oPjvmDaOygCtV2oboeKTu4xXFTk=", + "lastModified": 1793000687, + "narHash": "sha256-8mCor0DDjNhi+0e+FllfqiMABujBl+/RxYW+wgMpcto=", "owner": "Homebrew", "repo": "brew", - "rev": "08e85c4e42f5d8f1ea17c36cb59cf61c2ccb26c3", + "rev": "c6069d2a943b71b0a90d91fc1ac93cb9c1634dcc", "type": "github" }, "original": { "owner": "Homebrew", - "ref": "6.0.22", + "ref": "7.0.11", "repo": "brew", "type": "github" } @@ -24,11 +24,11 @@ ] }, "locked": { - "lastModified": 1789267039, - "narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=", + "lastModified": 1792818383, + "narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=", "owner": "nix-community", "repo": "home-manager", - "rev": "ec172013fa62135f58fb58dd17ae9651e8f39727", + "rev": "24f2190587513b9c2f73db112a17844ae912d965", "type": "github" }, "original": { @@ -45,11 +45,11 @@ ] }, "locked": { - "lastModified": 1783744694, - "narHash": "sha256-2cp6N3rrwnGYLTx9l6N+NI+kwrCWxvJUbj5WJhvB29A=", + "lastModified": 1792800221, + "narHash": "sha256-53jIZEWNh96irEXhsMZFoNhLJgGSU3nYl1i4wFQHAsU=", "owner": "nix-darwin", "repo": "nix-darwin", - "rev": "c3e90c89649b07d1a96e4b9dd6cd0d6e44b91a74", + "rev": "d31953cf55f9027a56e9be938daf5db8c5655663", "type": "github" }, "original": { @@ -64,11 +64,11 @@ "brew-src": "brew-src" }, "locked": { - "lastModified": 1788981439, - "narHash": "sha256-fEaFq0XgpgWFPLfpq1UK4/8ylHd2T0+fo6O3hKz1LUM=", + "lastModified": 1793543863, + "narHash": "sha256-oDYLVD8KGT/M57c8HziYSSj0le4wCyA+jZ7+/qUS91M=", "owner": "zhaofengli", "repo": "nix-homebrew", - "rev": "09a921d0181146cf6163ec2cc1db7b6fd539a885", + "rev": "52bc87da3f30c2261a6d1cfef3c892097b53daeb", "type": "github" }, "original": { @@ -79,11 +79,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1789485310, - "narHash": "sha256-VsDMTLSkAAJmbNha6sGNzlF33X7RESWLl3SnjDQu+4U=", + "lastModified": 1793976852, + "narHash": "sha256-bWDN3JZcE9ovYoaD0/6WYbMtXYpUu0vd5onpK0pc/SE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0c32f40fe3e2a9adfc427fd5abc061a31043ea44", + "rev": "57f1c8965649ce5bcac5118a0d2e41f1fbdc56e5", "type": "github" }, "original": { diff --git a/rebuild.sh b/rebuild.sh index f2b9ab7..029d1d1 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Rebuild nix-darwin + home-manager. Rotates stale home-manager *.backup files # so a second switch never fails with "would be clobbered". -# Also upgrades grok-build and installs OpenCode 1.x (stable CLI for free-tier). +# Also updates flake inputs, upgrades grok-build, installs OpenCode 1.x +# (stable CLI for free-tier), and updates no-mistakes. set -euo pipefail DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" ln -sfn "$DIR" ~/.dotfiles @@ -31,6 +32,24 @@ else echo "==> OpenCode 1.x already installed: $(${OPENCODE_BIN} --version)" fi +echo "==> Updating no-mistakes..." +NO_MISTAKES_BIN="$HOME/.no-mistakes/bin/no-mistakes" +if [ -x "$NO_MISTAKES_BIN" ]; then + if "$NO_MISTAKES_BIN" update 2>&1; then + echo "==> no-mistakes update complete" + else + echo "==> WARNING: no-mistakes update failed. Skipping." + fi +elif command -v no-mistakes >/dev/null 2>&1; then + if no-mistakes update 2>&1; then + echo "==> no-mistakes update complete" + else + echo "==> WARNING: no-mistakes update failed. Skipping." + fi +else + echo "==> WARNING: no-mistakes not found. Skipping update." +fi + stamp="$(date +%Y%m%d-%H%M%S)" # Paths home-manager manages via home.file (regular files become out-of-store symlinks). managed=( @@ -75,4 +94,11 @@ do fi done +echo "==> Updating flake inputs..." +if nix flake update --flake ~/.dotfiles 2>&1; then + echo "==> flake update complete" +else + echo "==> WARNING: flake update failed. Continuing with locked inputs." +fi + exec sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp