2024-12-18 09:40:11 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.module.ollama;
|
|
|
|
in
|
2024-11-16 04:43:59 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2024-11-16 04:43:59 +03:00
|
|
|
}
|