blob: 279337395d36e6e2242352fcf5c8436df8f43b0a (
plain) (
tree)
|
|
{
configPath,
lib,
...
}:
let
basePath = "llm/templates";
llmTemplates = [
"pr-prompt.yaml"
"commit-prompt.yaml"
"readme-gen.yaml"
];
mkLlmTemplate = file: {
".config/${basePath}/${file}" = {
source = "${configPath}/${basePath}/${file}";
};
};
in
{
home.file = lib.mkMerge (map mkLlmTemplate llmTemplates);
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";
};
}
|