summaryrefslogtreecommitdiff
path: root/modules/ollama.nix
blob: 50b9471f87a7b41e82a69295b14373b093724b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ ... }:
{
  fileSystems."/models" = {
    device = "/home/ollama"; 
    fsType = "none";
    options = [ "bind" ];
  };

  services.ollama = {
    enable = true;
    acceleration = "rocm";
    loadModels = [
      "deepseek-r1:14b"
      "qwen3:14b"
      "qwen3-coder:30b"
    ];
    syncModels = true;
    user = "ollama";
    models = "/models";
  };
  services.nextjs-ollama-llm-ui.enable = true;
}