summaryrefslogtreecommitdiff
path: root/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-26 09:06:07 +0300
committerPaul Buetow <paul@buetow.org>2026-04-26 09:06:07 +0300
commit3d3c56f40d9b37afda4d3d5b0ecf10aab190ddfc (patch)
treeffbe835ee9ffa26d0b320946fa63809c6f34c87c /Rexfile
parente917a81fd555668431c8d9b415cf6237d681df53 (diff)
Add hexai config to dotfiles (Linux only)
Manage ~/.config/hexai/config.toml from the dotfiles repo, mirroring how helix, lazygit, and opencode are handled. The home_hexai task is gated to Linux because hexai is currently only used on the Linux workstation. The deployed config sets Ollama Cloud (kimi-k2.6 at https://ollama.com) as the default provider and uses gemma4:31b for in-code completion. The API key is read from $HEXAI_OLLAMA_API_KEY (or $OLLAMA_API_KEY). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'Rexfile')
-rw-r--r--Rexfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rexfile b/Rexfile
index f512415..a9c1c5e 100644
--- a/Rexfile
+++ b/Rexfile
@@ -146,6 +146,16 @@ task 'home_helix', sub { ensure "$DOT/helix/*" => "$HOME/.config/helix/" };
desc 'Install ~/.config/ghostty';
task 'home_ghostty', sub { ensure "$DOT/ghostty/*" => "$HOME/.config/ghostty/" };
+desc 'Install ~/.config/hexai (Linux only)';
+task 'home_hexai', sub {
+ if ( $^O eq 'linux' ) {
+ ensure "$DOT/hexai/*" => "$HOME/.config/hexai/";
+ }
+ else {
+ Rex::Logger::info( 'Skipping hexai configuration (not on Linux)', 'warn' );
+ }
+};
+
desc 'Install ~/.config/lazygit';
task 'home_lazygit', sub { ensure "$DOT/lazygit/*" => "$HOME/.config/lazygit/" };