nix-config/modules/services/ollama.nix
2024-01-26 01:04:08 +01:00

14 lines
270 B
Nix

{
networking.firewall.allowedTCPPorts = [11434];
services.ollama = {
listenAddress = "0.0.0.0:11434";
enable = true;
};
environment.persistence."/state".directories = [
{
directory = "/var/lib/private/ollama";
mode = "0700";
}
];
}