Files
nixos/modules/hardware/ollama.nix
2026-06-19 05:47:33 +02:00

18 lines
376 B
Nix

{
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 ];
}