mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-20 13:02:17 +00:00
chore: faster builds, fzf lua (#74)
This commit is contained in:
parent
80efbae1e9
commit
0db4171b0b
8 changed files with 52 additions and 25 deletions
|
|
@ -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}"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue