From 61fa2329f553f9c7962e968e1ec98ae675903b70 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 12 Aug 2025 08:52:51 -0700 Subject: users -> home --- home/profiles/llm.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 home/profiles/llm.nix (limited to 'home/profiles/llm.nix') diff --git a/home/profiles/llm.nix b/home/profiles/llm.nix new file mode 100644 index 0000000..2793373 --- /dev/null +++ b/home/profiles/llm.nix @@ -0,0 +1,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"; + }; +} -- cgit v1.2.3