From 90c310302de79175f57b6f4777987a201522b96d Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Mon, 17 Nov 2025 22:47:21 +0200 Subject: [PATCH] Allow sharing configurations between host and containers --- .config/emacs/init.el | 1 + .config/environment.d/ollama.conf | 3 +++ .config/hosts | 1 + 3 files changed, 5 insertions(+) create mode 100644 .config/environment.d/ollama.conf create mode 100644 .config/hosts diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 5a3e8cb..497d7d8 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -343,6 +343,7 @@ :key 'gptel-api-key-from-auth-source ) (gptel-make-ollama "Ollama" + :host "ollama:11434" :stream t :models (enrich-ollama-models (list-ollama-models) gptel--local-models) ) diff --git a/.config/environment.d/ollama.conf b/.config/environment.d/ollama.conf new file mode 100644 index 0000000..6105efa --- /dev/null +++ b/.config/environment.d/ollama.conf @@ -0,0 +1,3 @@ +# keep-sorted start +HOSTALIASES=~/.config/hosts +# keep-sorted end diff --git a/.config/hosts b/.config/hosts new file mode 100644 index 0000000..4aa6d0b --- /dev/null +++ b/.config/hosts @@ -0,0 +1 @@ +ollama localhost