NixOS-like services for Nix flakes
Go to file
2023-09-11 12:39:37 -04:00
.github/workflows init 2023-08-30 10:24:38 -04:00
dev dev: Switch from mission-control to just 2023-07-20 07:59:17 -04:00
doc doc: edit; add wip status 2023-07-21 14:08:44 -04:00
example [Update flake.lock; fix bugs] Test process overwrites other processes (#52) 2023-09-06 19:54:51 +05:30
nix fmt; add kafka and zk service to readme (#54) 2023-09-07 20:57:07 +05:30
test Add MySQL service (#50) 2023-09-07 20:36:27 +05:30
.envrc Revert "dev flake: check example and tests" 2023-07-10 19:36:14 -04:00
.gitignore Add dev flake 2023-06-21 16:07:19 -04:00
flake.nix feat: add lib to flake outputs exposing multiService func 2023-09-06 11:57:08 -04:00
justfile Process as test (VM -> Native test) (#38) 2023-08-23 22:47:20 +05:30
LICENSE Initial commit 2023-06-19 17:44:27 -04:00
README.md readme: we do have CI now 2023-09-11 12:39:37 -04:00

services-flake

Note

🚧 Work in Progress

NixOS-like services for Nix flakes, as a process-compose-flake module (based on flake-parts).

Getting Started

TODO

(But see ./test/flake.nix)

Services available

  • Apache Kafka
  • Elasticsearch
  • MySQL
  • PostgreSQL
  • Redis
  • Redis Cluster
  • Zookeeper
  • ...

A note on process working directory

The dataDir of these services tend to take relative paths, which are usually relative to the project root. As such, when you run these services using nix run, their data files are created relative to whichever directory you are in. If you want these data files to always reside relative to the project directory, instead of using nix run consider wrapping the process-compose packages in script, via either mission-control module or a justfile. The example uses the latter.

Contributing

Credits

Thanks to the devenv project on which much of our services implementation is based on.

FAQ

Why not re-use devenv service modules?

This is currently not possible (nor prioritized by the devenv project), which is why we must create our own services. See https://github.com/cachix/devenv/issues/75