fix: Trying to fix ollama service for darwin

This commit is contained in:
uttarayan21
2025-02-21 15:12:22 +05:30
parent a10ca460df
commit 9a69580cf6
5 changed files with 118 additions and 3 deletions

View File

@@ -3,5 +3,6 @@
./yabai.nix
./skhd.nix
./tailscale.nix
./ollama.nix
];
}

View File

@@ -0,0 +1,17 @@
{pkgs, ...}: {
imports = [../../../modules/ollama.nix];
services.ollama = {
enable = true;
host = "127.0.0.1";
port = 11434;
loadModels = [
"deepseek-r1:7b"
# "deepseek-r1:14b"
# "RobinBially/nomic-embed-text-8k"
];
environmentVariables = {
OLLAMA_ORIGINS = "*";
};
};
}