2024-10-23 19:21:14 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
config,
|
2025-01-22 17:10:29 +03:00
|
|
|
lib,
|
|
|
|
pkgsUnstable,
|
2024-12-18 09:40:11 +03:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.module.ollama;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2025-01-22 17:10:29 +03:00
|
|
|
services.ollama = {
|
|
|
|
enable = true;
|
|
|
|
host = "[::1]";
|
|
|
|
loadModels = cfg.models;
|
|
|
|
package = pkgsUnstable.ollama;
|
|
|
|
# acceleration = false;
|
2025-01-04 07:38:04 +03:00
|
|
|
};
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
2024-10-23 19:21:14 +03:00
|
|
|
}
|