aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/llm.nix
blob: 0c6c072e1c28274e2435c100807df628134ab4b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ self, ... }:
{
  home.file.".config/llm/templates/pr-prompt.yaml".text =
    builtins.readFile "${self}/configs/llm/templates/pr-prompt.yaml";

  home.file.".config/llm/templates/commit-prompt.yaml".text =
    builtins.readFile "${self}/configs/llm/templates/commit-prompt.yaml";

  home.file.".config/llm/templates/readme-gen.yaml".text =
    builtins.readFile "${self}/configs/llm/templates/readme-gen.yaml";

  programs.fish = {
    shellAliases = {
      commit-msg = "git diff --cached | llm -t commit-prompt";
      pr-msg = "git diff HEAD | llm -t pr-prompt";
      readme-gen = "llm -t readme-gen";
    };
  };

  home.sessionVariables = {
    LLM_USER_PATH = "$HOME/.config/llm";
  };
}