diff options
| author | Preston Pan <ret2pop@gmail.com> | 2026-01-30 20:50:09 -0800 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2026-01-30 20:50:09 -0800 |
| commit | 6de29052077fa51ccaa452ad7432dd64dc806bd2 (patch) | |
| tree | 5650c92cc82262941c183d782e517c13d1c488d2 /nix/modules/ollama.nix | |
| parent | d43c1e768c0102387a7c1167b476bb0af2d21987 (diff) | |
add more stuff to my monorepo
Diffstat (limited to 'nix/modules/ollama.nix')
| -rw-r--r-- | nix/modules/ollama.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/modules/ollama.nix b/nix/modules/ollama.nix index bfa0cf3..357f6a3 100644 --- a/nix/modules/ollama.nix +++ b/nix/modules/ollama.nix @@ -1,8 +1,9 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: { + # services.open-webui.enable = lib.mkDefault (!config.monorepo.profiles.server.enable); services.ollama = { enable = lib.mkDefault (!config.monorepo.profiles.server.enable); - acceleration = if (config.monorepo.profiles.workstation.enable) then "cuda" else null; + package = if (config.monorepo.profiles.workstation.enable) then pkgs.ollama-cuda else pkgs.ollama-vulkan; loadModels = if (config.monorepo.profiles.workstation.enable) then [ "qwen3:30b" "qwen3-coder:latest" |
