chore: faster builds, fzf lua

This commit is contained in:
Harivansh Rathi 2026-04-18 14:35:56 -04:00
parent 80efbae1e9
commit 9541a345bf
8 changed files with 52 additions and 25 deletions

View file

@ -8,19 +8,20 @@ let
sourceFile = ../config/devin/config.json;
targetDir = "${config.xdg.configHome}/devin";
targetFile = "${targetDir}/config.json";
bin = "${pkgs.coreutils}/bin";
coreutilsBin = "${pkgs.coreutils}/bin";
cmpBin = "${pkgs.diffutils}/bin/cmp";
in
{
# Devin rewrites this file when settings change, so seed a mutable copy
# instead of pointing the path at the read-only Nix store.
home.activation.installDevinConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
${bin}/mkdir -p "${targetDir}"
${coreutilsBin}/mkdir -p "${targetDir}"
if [ -f "${targetFile}" ] && ! ${bin}/cmp -s "${sourceFile}" "${targetFile}"; then
timestamp="$(${bin}/date +%Y%m%d%H%M%S)"
${bin}/cp "${targetFile}" "${targetFile}.hm-bak.$timestamp"
if [ -f "${targetFile}" ] && ! ${cmpBin} -s "${sourceFile}" "${targetFile}"; then
timestamp="$(${coreutilsBin}/date +%Y%m%d%H%M%S)"
${coreutilsBin}/cp "${targetFile}" "${targetFile}.hm-bak.$timestamp"
fi
${bin}/install -m 600 "${sourceFile}" "${targetFile}"
${coreutilsBin}/install -m 600 "${sourceFile}" "${targetFile}"
'';
}

View file

@ -30,7 +30,7 @@
shellAliases = {
co = "codex --dangerously-bypass-approvals-and-sandbox";
ca = "cursor-agent";
agent-claude = "cursor-agent --model=claude-opus-4-7-thinking --force";
agent-claude = "cursor-agent --model=claude-opus-4-7-1M --force";
agent-codex = "cursor-agent --model=gpt-5.4-xhigh-fast --force";
cc = "claude";
ch = "claude-handoff";