25 lines
440 B
Nix
25 lines
440 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgsUnstable,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.module.ollama;
|
|
in
|
|
{
|
|
disabledModules = [ "services/misc/ollama.nix" ];
|
|
imports = [ "${inputs.nixpkgsMaster}/nixos/modules/services/misc/ollama.nix" ];
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.ollama = {
|
|
enable = true;
|
|
host = "[::1]";
|
|
loadModels = cfg.models;
|
|
package = pkgsUnstable.ollama;
|
|
# acceleration = false;
|
|
};
|
|
};
|
|
}
|