Skip to content
Mementropy
Lab NotesHomelab notebookField note

Splitting the Macs into a desktop and a headless model server

I decided to turn the older Mac mini into a desktop and the newer one into a headless model server, though the cleanup is still underway.

By Ryan Hammang

On October 21 I stopped the old Docker containers on the older of my two Mac minis. Everything it used to run for the homelab had moved to K3s. See Shutting down mini-m2. That left a question I’d been putting off: what is each Mac for now?

This is a decision in progress, not a finished cutover. I’m writing down where it stood.

I have three Macs that matter here:

  • An M5 Pro MacBook Pro, my only hands-on daily machine. That hasn’t changed since September.
  • An M2 Pro Mac mini with 16 GB of RAM, the older one. It was the first server I ever ran myself, and it ran my Compose services for months.
  • An M4 Pro Mac mini with 64 GB of RAM, the newer one. It had been a mix of workstation, agent host and local model server.

On October 28 I decided to swap their jobs around. The older Mac mini becomes my always-available office Mac. It stays connected to printers, iCloud, Apple Notes and DEVONthink, and I can reach it remotely when I’m away from my desk and don’t have the MacBook with me. The newer Mac mini becomes a headless server on a shelf whose job is serving local models.

It’s the same idea as in September. Give each machine one job. A desktop Mac and a model server want different things. A desktop expects someone to log in, run apps and click through settings. A server should come back by itself after a power cut, run its services without anyone logged in, and be described in files.

Before changing anything, I had an agent take a read-only inventory of all three Macs. Nothing was changed on any of them. The inventory made it clear that each mini was still carrying parts of its old job.

The older Mac mini looked mostly retired as a server. Docker wasn’t running, and none of the old services had a live process or an open port. But it wasn’t clean:

  • Backup jobs for the old services were still on disk as launchd property lists, not loaded but not removed.
  • The old service folders were still there, about 420 MB in all.
  • Docker Desktop’s data folder was 42 GB. The old service volumes probably live there, which is exactly why I kept them. They need checking before anything gets deleted.
  • A few small helper services were still running, the kind that might need to move to the cluster before this becomes a pure desktop.

As a remote desktop, it was nearly ready. It restarts after a power loss, it doesn’t sleep, and Screen Sharing and SSH are on. One gap stood out. Auto-login isn’t set, so after a reboot it waits at the login window. I can still log in remotely from there, but anything that runs per user doesn’t start until someone does. And if FileVault is on, auto-login isn’t available at all. That’s a trade-off I haven’t decided yet. Its macOS was also one major version behind the other two Macs. And 16 GB is plenty for a desktop once the server leftovers and Docker are gone.

The newer Mac mini looked like the opposite. It was supposed to become a server, but it was still very much a desktop:

  • Three model runtimes side by side: Ollama, LM Studio and two llama.cpp servers. Ollama was actually running twice, the Homebrew service and the desktop app, on the same port. Which one answered depended on how a client connected.
  • About 133 GB of model files across those stores, with duplicates. The only models kept loaded were two small 4B models.
  • Automatic restart after a power failure was off, so it wouldn’t come back by itself after an outage.
  • Some of what kept it awake was apps holding off sleep, not just the power settings.
  • A lot of desktop software: scanner and peripheral helpers, cleanup utilities, office updaters, a browser with remote debugging turned on, and three builds of Emacs.

None of that is wrong for a desktop. It’s wrong for a server that agents depend on.

Retiring a server takes more than stopping its containers. The containers were the easy part. The leftovers are scattered: scheduled jobs, folders, volumes in a 42 GB disk image, small helpers that never made it into the plan. Turning a desktop into a server is the same problem in reverse, plus every app that assumes someone is sitting in front of it.

I also learned that “desktop” and “server” differ most around logging in. Should the machine log itself in after a reboot? Can its services run before anyone logs in? Those questions decide things like FileVault, and they’re different for each machine.

By November 4 there was a written plan for the newer Mac mini. Wipe it and rebuild it as a headless server with no Docker. Serve its models from a single llama.cpp server running under launchd, and retire LM Studio and both Ollama servers. LM Studio is a desktop app. It needs a logged-in session, keeps its own model store and is configured by clicking, none of which fits a headless machine with declarative configuration.

One open question carries over from the older mini. The model server needs the GPU to work from a system service before anyone logs in. If it can’t, the fallback is auto-login with a per-user service, and that means turning FileVault off. That decision is mine, and I haven’t made it in these notes.

The older Mac mini is no longer part of the lab, and the newer one is on its way to being a server. The roles are decided. The cleanup on both machines isn’t finished.

If you’ve turned a Mac into a headless server, how did you handle FileVault and logging in after a reboot?