diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix index 0c285ad1d..e5d936640 100644 --- a/modules/services/ollama.nix +++ b/modules/services/ollama.nix @@ -15,7 +15,14 @@ { config, lib, pkgs, ... }: let cfg = config.sane.services.ollama; - models = "${pkgs.ollamaPackages.llama3_2_3b}/share/ollama/models"; + modelSources = pkgs.symlinkJoin { + name = "ollama-models"; + paths = with pkgs.ollamaPackages; [ + llama3_2_3b + mistral + ]; + }; + models = "${modelSources}/share/ollama/models"; in { options.sane.services.ollama = with lib; {