From 49e6bdd78ac0da154b9e2d3aaeba44970d3473d8 Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Wed, 10 Jul 2024 12:00:30 -0300 Subject: [PATCH] Scoped environment variable to ollama --- modules/system.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/system.nix b/modules/system.nix index 91f2289..e57a37d 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -50,9 +50,11 @@ services.fwupd.enable = true; # Ollama as a service - services.ollama.enable = true; - environment.variables = { - OLLAMA_ORIGINS = "moz-extension://*"; + services.ollama = { + enable = true; + environmentVariables = { + OLLAMA_ORIGINS = "moz-extension://*"; + }; }; # Enable fish shell