blob: 279337395d36e6e2242352fcf5c8436df8f43b0a (
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
24
25
26
27
28
29
30
31
32
33
|
{
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";
};
}
|