Changing the Default Ollama Models Directory
I have a second drive mounted at /mnt/data that survives system rebuilds. Ollama models are large — pulling everything again from scratch after a reinstall is painful — so I wanted to move the model storage there. Ollama respects the OLLAMA_MODELS environment variable, and since it runs as a systemd service, the cleanest way to set that is with a drop-in override. Creating the Drop-in systemd drop-ins let you override parts of a unit file without touching the original. The convention is a directory named <unit>.d/ under /etc/systemd/system/: ...