summary refs log tree commit diff
path: root/host/Rory-nginx/services/ollama.nix
blob: 84809685c3aa210814ea9aab4839909ca1a4976a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, pkgs, lib, ... }:

{
#  systemd.tmpfiles.rules = [  "d /data/ollama 0750 ostgres postgres" ];

  services.ollama = {
    enable = true;
    home = "/data/ollama/home";
    models = "/data/ollama/home/models";
    environmentVariables = {
      OLLAMA_LLM_LIBRARY = "cpu_avx2";
    };
    writablePaths = [ "/data/ollama/home" ];
    listenAddress = "0.0.0.0:11434";
    sandbox = false;
  };
}