Set up LLM and Aider.

Update flake deps.
This commit is contained in:
2025-04-02 13:43:04 +01:00
parent 82b4eabaa3
commit 1e6a246f5b
3 changed files with 54 additions and 43 deletions

View File

@@ -15,6 +15,8 @@
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
];
GEMINI_API_KEY = "AIzaSyBZkifYOFNKCjROLa_GZyzQbB2EbEYIby4";
LLM_GEMINI_KEY = "AIzaSyBZkifYOFNKCjROLa_GZyzQbB2EbEYIby4";
};
shellAliases = {
@@ -25,6 +27,7 @@
directories = [
".cache/nix"
".cache/nix-index"
".config/io.datasette.llm/"
".config/sops/"
".docker/"
".local/share/fish"

View File

@@ -1,22 +1,30 @@
{ pkgs }:
let
corePkgs = with pkgs; [
direnv
fzf
git
mosh
ripgrep
tmux
zsh
];
pythonEnv = pkgs.unstable.python3.withPackages (ps: [
ps.aider-chat
ps.google-generativeai
ps.ipython
ps.llm
ps.llm-gemini
]);
fishPkgs = with pkgs.fishPlugins; [
pure
# don't add failed commands to history
sponge
transient-fish
];
in
{
packages =
with pkgs;
[
direnv
fzf
git
home-manager
mosh
python312Packages.ipython
ripgrep
tmux
zsh
]
++ (with pkgs.fishPlugins; [
pure
# don't add failed commands to history
sponge
transient-fish
]);
packages = corePkgs ++ [ pythonEnv ] ++ fishPkgs;
}