nix/config/Ollama.nix

21 lines
295 B
Nix
Raw Normal View History

2024-10-23 19:21:14 +03:00
{
config,
lib,
pkgsUnstable,
...
}:
let
cfg = config.module.ollama;
in
{
config = lib.mkIf cfg.enable {
services.ollama = {
enable = true;
host = "[::1]";
loadModels = cfg.models;
package = pkgsUnstable.ollama;
# acceleration = false;
};
};
2024-10-23 19:21:14 +03:00
}