diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-11-30 21:59:43 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-11-30 21:59:43 +0000 |
| commit | 893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch) | |
| tree | ef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/ollama/default.nix | |
| parent | added .lock to ignorelist (diff) | |
huge restructure of modules
Diffstat (limited to '')
| -rw-r--r-- | modules/ollama/default.nix | 21 |
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; + }; + }; + }; + }; +} |
