mirror of
https://github.com/juspay/services-flake.git
synced 2024-10-26 13:09:04 +03:00
fmt; add kafka and zk service to readme (#54)
This commit is contained in:
parent
072fb57419
commit
0f31f24754
@ -16,11 +16,13 @@ TODO
|
||||
|
||||
## Services available
|
||||
|
||||
- [x] PostgreSQL
|
||||
- [x] Apache Kafka
|
||||
- [x] Elasticsearch
|
||||
- [x] MySQL
|
||||
- [x] PostgreSQL
|
||||
- [x] Redis
|
||||
- [x] Redis Cluster
|
||||
- [x] Elasticsearch
|
||||
- [x] Zookeeper
|
||||
- [ ] ...
|
||||
|
||||
## A note on process working directory
|
||||
|
@ -1,14 +1,15 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (import ./lib.nix) multiService;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = builtins.map multiService [
|
||||
./apache-kafka.nix
|
||||
./elasticsearch.nix
|
||||
./mysql.nix
|
||||
./postgres.nix
|
||||
./redis.nix
|
||||
./redis-cluster.nix
|
||||
./elasticsearch.nix
|
||||
./redis.nix
|
||||
./zookeeper.nix
|
||||
];
|
||||
}
|
||||
|
@ -5,14 +5,16 @@
|
||||
# 'name' parameter, and is expected to set the final process-compose config in
|
||||
# its `outputs.settings` option.
|
||||
multiService = mod:
|
||||
{ config, pkgs, lib, ... }: let
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
# Derive name from filename
|
||||
name = lib.pipe mod [
|
||||
builtins.baseNameOf
|
||||
(lib.strings.splitString ".")
|
||||
builtins.head
|
||||
];
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.services.${name} = lib.mkOption {
|
||||
description = ''
|
||||
${name} service
|
||||
|
Loading…
Reference in New Issue
Block a user