ragflow

Infiniflow/ragflow (RAGFlow) is Docker-based. It relies on Docker and Docker Compose for its primary deployment method, using pre-built images or custom builds to orchestrate services like MinIO for storage, Elasticsearch (or Infinity) for search, Redis for caching, and MySQL for the database. The official quickstart and documentation emphasize Docker as the recommended way to run it, with a docker-compose.yml file handling the multi-container setup.

To get it up and running on NixOS, you’ll need to enable and configure Docker declaratively (as NixOS manages system services this way), meet the hardware prerequisites (≥4 CPU cores, ≥16 GB RAM, ≥50 GB disk), and follow the standard RAGFlow setup. Here’s what it would take, step by step:

1. Prepare Your NixOS Configuration

Edit /etc/nixos/configuration.nix (or your main config file) to enable Docker and set the required kernel parameter for Elasticsearch/Infinity. Add or modify these lines:

{{}c#v#b}#e]###oio;n;nErSo"IvgdOvTfntetvniiopihiaut.msrtctregbak.tokitn,llkemaneoueieralmrnaipsrnxle-alnkDane_nclisgotelmnto:stscil.ae.maa,kospcspItlensy_eyofilr.yscsssodscosteyngoctuaeo.Vctlnrmuci}kltyPos:e="awnorfpcatr.o{=aknaercatisn2kgneav6aetepbm2gsoral.1esrem4s=u.aa4set=x;swene_yialtmstgbyrathVlupeieie_mpsf;c-ko=owgrnuistend;freteoud[ree((;drgt:eihqte#hutifsTtroahpernisdds:cb/floe/ooxngrneavidbiEnlslgceoa,osrsd.tdecdiooeccenvskxt/eeeadarcior-uncccteshoor//mrduIp,snofefsewrieah_ntigifucutorhiyred)geoV/riicsnhosertsatulrslae/tsion)

2. Clone the RAGFlow Repository

gcidtrcalgofnleowh/tdtopcsk:e/r/github.com/infiniflow/ragflow.git

3. Configure Environment and Services

4. Start the Services

docker-composeup-d

Potential NixOS-Specific Considerations

This should get RAGFlow running reliably. If you hit issues, the project’s docs or GitHub issues are good resources.