{ services.ollama = { enable = true; acceleration = "rocm"; host = "0.0.0.0"; port = 11434; user = "ollama"; group = "ollama"; }; # Fix ownership on the externally mounted disk at /var/lib/private/ollama systemd.tmpfiles.rules = [ "Z /var/lib/private/ollama 0750 ollama ollama -" ]; networking.firewall.allowedTCPPorts = [ 11434 ]; }