From 11ef001a78057fb0350b964bcfc31fd7f83cc848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 16 Nov 2025 16:23:28 +0100 Subject: [PATCH 1/2] setup ollama server with tailscale security --- void.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/void.nix b/void.nix index bf75827..2d06d39 100644 --- a/void.nix +++ b/void.nix @@ -153,7 +153,12 @@ }; systemd.timers."postgresqlBackup".unitConfig.Persistent = true; - # minecraft TerraFirmaGreg server + services.ollama = { + enable = true; + acceleration = "rocm"; + # only allow tailscale access + host = "100.70.78.2"; + }; services.miniflux = { enable = true; From 53e5b4cc1a17311a3b3160c24cf304e8a613571c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 16 Nov 2025 16:29:43 +0100 Subject: [PATCH 2/2] set ollama base url --- home.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home.nix b/home.nix index c9f4eca..9ad6f03 100644 --- a/home.nix +++ b/home.nix @@ -136,6 +136,7 @@ in { sessionVariables = { EDITOR = "hx"; + OLLAMA_BASE_URL = "http://void.hummingbird-stork.ts.net:11434"; }; inherit username;