aboutsummaryrefslogtreecommitdiff
path: root/modules/ollama
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
commit893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch)
treeef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/ollama
parentadded .lock to ignorelist (diff)
huge restructure of modules
Diffstat (limited to '')
-rw-r--r--modules/ollama/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/ollama/default.nix b/modules/ollama/default.nix
new file mode 100644
index 0000000..9f966af
--- /dev/null
+++ b/modules/ollama/default.nix
@@ -0,0 +1,21 @@
+{ config, pkgs, lib, ... }:
+{
+ services = {
+ ollama = {
+ enable = true;
+ loadModels = [
+ "gemma3:12b"
+ "qwen3-coder:30b"
+ ];
+ };
+
+ nginx.virtualHosts = {
+ "ollama.internal" = {
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:11434";
+ proxyWebsockets = true;
+ };
+ };
+ };
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.