summaryrefslogtreecommitdiff
path: root/nix/modules/ollama.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/ollama.nix')
-rw-r--r--nix/modules/ollama.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nix/modules/ollama.nix b/nix/modules/ollama.nix
index 33c41c9..bfa0cf3 100644
--- a/nix/modules/ollama.nix
+++ b/nix/modules/ollama.nix
@@ -1,14 +1,16 @@
{ config, lib, ... }:
{
services.ollama = {
- enable = lib.mkDefault (!config.monorepo.profiles.ttyonly.enable);
+ enable = lib.mkDefault (!config.monorepo.profiles.server.enable);
acceleration = if (config.monorepo.profiles.workstation.enable) then "cuda" else null;
- loadModels = [
+ loadModels = if (config.monorepo.profiles.workstation.enable) then [
"qwen3:30b"
"qwen3-coder:latest"
"qwen2.5-coder:latest"
- "qwen2.5-coder:3b"
"gemma3:12b-it-qat"
+ ] else [
+ "qwen3:0.6b"
+ "qwen2.5-coder:0.5b"
];
host = "0.0.0.0";
openFirewall = true;