diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-21 12:49:14 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-21 12:49:14 -0700 |
| commit | 3d6af5dc1c31d481a458ce00550b193d35648e32 (patch) | |
| tree | bc343c343ffba009d33a95dcdffd5562ff0fc3ef /users/profiles/llm.nix | |
| parent | install minimal home-manager profile on the VM (diff) | |
| download | infra-3d6af5dc1c31d481a458ce00550b193d35648e32.tar.gz | |
move user configurations to top-level
Diffstat (limited to 'users/profiles/llm.nix')
| -rw-r--r-- | users/profiles/llm.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/users/profiles/llm.nix b/users/profiles/llm.nix new file mode 100644 index 0000000..2793373 --- /dev/null +++ b/users/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"; + }; +} |
