From 3cbabde86a702b8d7eccd51e14afa38dbf9e6dad Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Thu, 18 Jun 2026 13:38:39 +0200 Subject: [PATCH] Changed llm to use groq with lg and ollama with l --- home/default.nix | 4 +++- home/shell.nix | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/home/default.nix b/home/default.nix index 63de984..6a10a22 100644 --- a/home/default.nix +++ b/home/default.nix @@ -18,13 +18,15 @@ ./neovim ./python.nix ./fonts.nix - ./opencode.nix inputs.sops-nix.homeManagerModules.sops ] ++ lib.optionals (!isDarwin && !isServer) [ ./desktop ./catppuccin.nix ] + ++ lib.optionals (!isDarwin) [ + ./opencode.nix + ] ++ lib.optionals isDarwin [ ./desktop/sketchybar ./catppuccin.nix diff --git a/home/shell.nix b/home/shell.nix index a1e5d01..81c2c83 100644 --- a/home/shell.nix +++ b/home/shell.nix @@ -184,7 +184,7 @@ # llm | glow — ollama (local/tailscale) def l [...args] { llm prompt -m llama3.2:3b -t std ...$args | glow } # llm | glow — groq (cloud) - def lg [...args] { llm prompt -m groq/llama-3.3-70b-versatile -t std ...$args | glow } + def lgroq [...args] { llm prompt -m groq/llama-3.3-70b-versatile -t std ...$args | glow } ''; extraEnv = '' starship init nu | save -f ~/.cache/starship/init.nu @@ -239,7 +239,7 @@ llm prompt -m llama3.2:3b -t std $argv | glow ''; }; - lg = { + lgroq = { body = '' if test -f "$GROQ_API_KEY" set -x GROQ_API_KEY (cat $GROQ_API_KEY)