aboutsummaryrefslogblamecommitdiff
path: root/nix/users/fcuny/llm.nix
blob: c41bf042c61fd20d0969d44e7ccfab9ff56fdfbb (plain) (tree)
1
2
3
4
5
6
7
8

        

                                                                    
 

                                                                        
 


                                                                     

                    

                                                              
                                       

      



                                        
 
{ ... }:
{
  home.file.".config/llm/templates/pr-prompt.yaml".text =
    builtins.readFile ../../../configs/llm/templates/pr-prompt.yaml;

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

  home.file.".config/llm/templates/readme-gen.yaml".text =
    builtins.readFile ../../../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";
  };
}