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.nix5
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"