Files
Mic92 cb5d889ffb
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
storinator01: add ollama
2025-06-16 15:22:41 +02:00

23 lines
406 B
Nix

{
pkgs,
...
}:
{
services.ollama = {
enable = true;
package = pkgs.ollama;
host = "0.0.0.0";
port = 11434;
};
# Open firewall for Ollama API
networking.firewall.allowedTCPPorts = [ 11434 ];
# Optional: Enable GPU acceleration if available
# hardware.nvidia.modesetting.enable = true;
# systemd.services.ollama.environment = {
# CUDA_VISIBLE_DEVICES = "0";
# };
}