From 03b8fb2d5d150481744a0b74734f983d24646b55 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 29 May 2024 10:46:26 +0200 Subject: [PATCH] modules.system.server.ollama: use var nvidiaEnabled --- modules/system/server/ollama/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/server/ollama/default.nix b/modules/system/server/ollama/default.nix index c1bfd7d..469fb96 100644 --- a/modules/system/server/ollama/default.nix +++ b/modules/system/server/ollama/default.nix @@ -15,7 +15,7 @@ in services.ollama = { enable = true; - acceleration = if config.modules.system.hardware.nvidia.enable then "cuda" else null; + acceleration = if nvidiaEnabled then "cuda" else null; }; }; } \ No newline at end of file