nix/option/Ollama.nix

20 lines
348 B
Nix

{
config,
lib,
...
}: let
cfg = config.module.ollama;
in {
options.module.ollama = {
enable = lib.mkEnableOption "the local LLM server.";
models = lib.mkOption {
default = [ cfg.primaryModel ];
type = with lib.types; listOf str;
};
primaryModel = lib.mkOption {
default = "llama3.2";
type = lib.types.str;
};
};
}