File size: 563 Bytes
9a13466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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
  '';
}