summary refs log tree commit diff
path: root/host/Rory-portable/ollama.nix
blob: 0c72b85c2cc7a99f113167b5782f22173b2e4c3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  config,
  pkgs,
  lib,
  ...
}:

{
  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";
    host = "0.0.0.0";
    port = 11434;
    sandbox = false;
  };
}