diff --git a/shared/modules/development/ollama.nix b/shared/modules/development/ollama.nix index d737250..11a8ce2 100644 --- a/shared/modules/development/ollama.nix +++ b/shared/modules/development/ollama.nix @@ -1,6 +1,8 @@ +{ lib, systemConfig, ... }: + { services.ollama = { enable = true; - acceleration = "cuda"; + acceleration = lib.mkIf systemConfig.nvidia.enable "cuda"; }; }