diff options
Diffstat (limited to 'nix/users/fcuny/llm.nix')
| -rw-r--r-- | nix/users/fcuny/llm.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/nix/users/fcuny/llm.nix b/nix/users/fcuny/llm.nix deleted file mode 100644 index 2793373..0000000 --- a/nix/users/fcuny/llm.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - 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"; - }; -} |
