diff options
| author | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-03-02 17:36:58 -0800 |
|---|---|---|
| committer | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-03-10 19:32:18 -0700 |
| commit | 8bfa3f50136a620d6cc80965ad9067712b6e9619 (patch) | |
| tree | 1eda208a11216a04bdda07fc12b1176ec87e19c7 /nix | |
| parent | ensure llm templates dir exists (diff) | |
| download | infra-8bfa3f50136a620d6cc80965ad9067712b6e9619.tar.gz | |
add repomix integration
- Install `repomix` via homebrew
- Add `llm-bundle` just command and `readme-gen` template
- Configure just integration in home config
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/machines/darwin-shared.nix | 4 | ||||
| -rw-r--r-- | nix/users/fcuny/dev.nix | 2 | ||||
| -rw-r--r-- | nix/users/fcuny/llm.nix | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/nix/machines/darwin-shared.nix b/nix/machines/darwin-shared.nix index 2f0ceb9..8852dc3 100644 --- a/nix/machines/darwin-shared.nix +++ b/nix/machines/darwin-shared.nix @@ -92,6 +92,10 @@ upgrade = true; }; + brews = [ + "repomix" + ]; + casks = [ "1password-cli" "docker" diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix index 3c74997..9e3b50c 100644 --- a/nix/users/fcuny/dev.nix +++ b/nix/users/fcuny/dev.nix @@ -91,6 +91,8 @@ ]; }; + home.file.".config/just/justfile".text = builtins.readFile ../../../configs/justfile; + home.sessionPath = [ config.home.sessionVariables.GOBIN "${config.home.homeDirectory}/.local/bin" diff --git a/nix/users/fcuny/llm.nix b/nix/users/fcuny/llm.nix index 4510c67..c41bf04 100644 --- a/nix/users/fcuny/llm.nix +++ b/nix/users/fcuny/llm.nix @@ -1,17 +1,19 @@ { ... }: { - home.file.".configs/llm/templates/.keep".text = "# Managed by Home Manager"; - home.file.".config/llm/templates/pr-prompt.yaml".text = builtins.readFile ../../../configs/llm/templates/pr-prompt.yaml; home.file.".config/llm/templates/commit-prompt.yaml".text = builtins.readFile ../../../configs/llm/templates/commit-prompt.yaml; + home.file.".config/llm/templates/readme-gen.yaml".text = + builtins.readFile ../../../configs/llm/templates/readme-gen.yaml; + 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"; }; }; |
