diff options
Diffstat (limited to 'nix/users/fcuny')
| -rw-r--r-- | nix/users/fcuny/llm.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/nix/users/fcuny/llm.nix b/nix/users/fcuny/llm.nix index 48604c3..407cead 100644 --- a/nix/users/fcuny/llm.nix +++ b/nix/users/fcuny/llm.nix @@ -1,16 +1,22 @@ { ... }: { - home.file.".config/prompts/pr-prompt.txt".text = - builtins.readFile ../../../configs/prompts/pr-prompt.txt; + # we need this path to be created. + home.file.".configs/llm/templates/.keep".text = "# Managed by Home Manager"; + home.file.".config/llm/templates/pr-prompt.yaml".text = + builtins.readFile ../../../configs/llm/templates/pr-prompt.yaml; - home.file.".config/prompts/commit-system-prompt.txt".text = - builtins.readFile ../../../configs/prompts/commit-system-prompt.txt; + home.file.".config/llm/templates/commit-prompt.yaml".text = + builtins.readFile ../../../configs/llm/templates/commit-prompt.yaml; programs.fish = { shellAliases = { - commit-msg = "git diff HEAD | llm -m claude-3.5-sonnet -s (cat ~/.config/prompts/commit-system-prompt.txt |psub)"; - pr-msg = "git diff HEAD | llm -m claude-3.5-sonnet -s (cat ~/.config/prompts/pr-prompt.txt |psub)"; + commit-msg = "git diff --cached | llm -t commit-prompt"; + pr-msg = "git diff HEAD | llm -t pr-prompt"; }; }; + + home.sessionVariables = { + LLM_USER_PATH = "$HOME/.config/llm"; + }; } |
