chore: preserve local configuration edits before activation
This commit is contained in:
1 parent
fd96dc6dc0
commit
a71022f937
12 files changed
+217
-57
No files matched your search
@@ -90,12 +90,13 @@ in
|
||||
gb = "grok --yolo";
|
||||
# firstmate primary session in OpenCode 2 on the OpenCode Go subscription,
|
||||
# launched through the isolated-config oc2 wrapper; crewmates = OpenCode by
|
||||
# default. Permanent since 2026-11-15: fm-pi stays only as the explicit Pi
|
||||
# fallback, never as the default launcher. fm-oc2 is the explicit
|
||||
# OpenCode 2 name and stays byte-identical to fm.
|
||||
# default. Permanent since 2026-11-15: fm-pi and fm-omp stay only as the
|
||||
# explicit Pi and omp-harness fallbacks, never as the default launcher.
|
||||
# fm-oc2 is the explicit OpenCode 2 name and stays byte-identical to fm.
|
||||
fm = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2";
|
||||
fm-oc2 = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2";
|
||||
fm-pi = "cd ${firstmateHome} && exec pi";
|
||||
fm-omp = "cd ${firstmateHome} && exec omp";
|
||||
oc2 = "${home}/.local/bin/oc2";
|
||||
# Sync ~/Music into the beets library on Unraid (requires NAS mounted).
|
||||
sync-music = "~/.local/bin/sync-music";
|
||||
@@ -250,6 +251,10 @@ in
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/bin/security-audit-sandbox";
|
||||
force = true;
|
||||
};
|
||||
home.file.".local/bin/serve-inkling" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/home/bin/serve-inkling";
|
||||
force = true;
|
||||
};
|
||||
# Stable symlink for yt-transcribe: shells exec it from local disk. The
|
||||
# repo's home/bin script is the source of truth — a repo edit takes effect
|
||||
# on the next rebuild; the Unraid share holds only data.
|
||||
@@ -582,7 +587,39 @@ in
|
||||
done
|
||||
echo "pstackSkills: installed ${toString (lib.length pstackSkillNames)} pinned skills into $dest"
|
||||
'';
|
||||
|
||||
# explain-simply skill, a house-authored skill checked into this repo at
|
||||
# home/.agents/skills/explain-simply. It lives in the shared universal
|
||||
# directory (instead of the opencode-only dotfiles path) so every agent that
|
||||
# reads ~/.agents/skills - Codex, Pi, OpenCode, and Claude Code (via the
|
||||
# link below) - sees the skill. The repo is the single source of truth; this
|
||||
# block copies the checked-in source into the live dir on every rebuild,
|
||||
# healing a half-removed install.
|
||||
home.activation.explainSimplySkill = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
src="${dotfiles}/home/.agents/skills/explain-simply"
|
||||
dest="$HOME/.agents/skills/explain-simply"
|
||||
if [ ! -d "$src" ]; then
|
||||
echo "explainSimplySkill: checked-in source missing at $src" >&2
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$HOME/.agents/skills"
|
||||
# Remove first so a renamed source file never lingers in the old copy.
|
||||
rm -rf "$dest"
|
||||
if ! cp -R "$src" "$dest"; then
|
||||
echo "explainSimplySkill: failed to install $dest" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Store files are read-only; make the installed copy writable again.
|
||||
chmod -R u+w "$dest"
|
||||
# Claude Code reads ~/.claude/skills rather than the universal directory;
|
||||
# restore the link the Skills CLI would normally create. User-replaced
|
||||
# directories are left alone.
|
||||
claudeLink="$HOME/.claude/skills/explain-simply"
|
||||
mkdir -p "$HOME/.claude/skills"
|
||||
if [ -L "$claudeLink" ] || [ ! -e "$claudeLink" ]; then
|
||||
ln -sfn ../../.agents/skills/explain-simply "$claudeLink"
|
||||
fi
|
||||
'';
|
||||
# OpenSuperWhisper - local voice-first prompting (cask in configuration.nix).
|
||||
# The app reads its model from its own Application Support directory, so the
|
||||
# 1.6 GB Whisper model is downloaded here once and kept outside the Nix store.
|
||||
|
||||
Reference in new issue
Block a user