ea-models / shell.nix
devfloww's picture
Started sumn
9a13466
raw
history blame contribute delete
563 Bytes
# shell.nix (in your ea project root)
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
ollama
python311
python311Packages.uv
git-lfs
git
gcc
portaudio
pkg-config # for any C builds
];
shellHook = ''
echo "EA dev shell loaded — Ollama ready!"
# Auto-start Ollama server in background if not running
if ! pgrep ollama >/dev/null 2>&1; then
echo "Starting Ollama server..."
ollama serve &
sleep 3 # give it a sec to boot
fi
ollama --version # test it
'';
}