blob: bfa0cf3322004f26f04b0a56008404f60c6e5e69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ config, lib, ... }:
{
services.ollama = {
enable = lib.mkDefault (!config.monorepo.profiles.server.enable);
acceleration = if (config.monorepo.profiles.workstation.enable) then "cuda" else null;
loadModels = if (config.monorepo.profiles.workstation.enable) then [
"qwen3:30b"
"qwen3-coder:latest"
"qwen2.5-coder:latest"
"gemma3:12b-it-qat"
] else [
"qwen3:0.6b"
"qwen2.5-coder:0.5b"
];
host = "0.0.0.0";
openFirewall = true;
};
}
|