CrOS/modules/services/ollama/default.nix
TheWanderingCrow 7d75d11c05 ollama
2025-10-03 16:59:18 -04:00

45 lines
810 B
Nix

{
config,
pkgs,
...
}: {
environment.systemPackages = [
pkgs.rocmPackages.rocminfo
pkgs.rocmPackages.rocmPath
];
services.ollama = {
enable = true;
loadModels = [];
acceleration = "rocm";
};
services.open-webui = {
enable = true;
port = 3000;
host = "0.0.0.0";
openFirewall = true;
};
services.searx = {
enable = true;
redisCreateLocally = true;
settings = {
server.limiter = false;
server.secret_key = "temptestsecret";
server.port = 3001;
server.bind_address = "0.0.0.0";
search.formats = [
"html"
"json"
];
};
limiterSettings = {
botdetection = {
ip_limit.link_token = false;
ip_lists.block_ip = [];
ip_lists.pass_ip = [];
};
};
};
}