forked from juspay/services-flake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (40 loc) · 1.2 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
description = "declarative, composable, and reproducible services for Nix development environment";
outputs = _: {
processComposeModules.default = ./nix/services;
templates.default = {
description = "Example flake using process-compose-flake";
path = builtins.path { path = ./example/simple; filter = path: _: baseNameOf path == "flake.nix"; };
};
lib = import ./nix/lib.nix;
# CI configuration; to run locally, `nix --accept-flake-config github:juspay/omnix ci`
om.ci.default = let overrideInputs = { "services-flake" = ./.; }; in {
simple-example = {
inherit overrideInputs;
dir = "./example/simple";
};
llm-example = {
inherit overrideInputs;
dir = "./example/llm";
};
share-services-example = {
overrideInputs = {
inherit (overrideInputs) services-flake;
northwind = ./example/share-services/northwind;
};
dir = "./example/share-services/pgweb";
};
test = {
inherit overrideInputs;
dir = "./test";
};
dev = {
inherit overrideInputs;
dir = "./dev";
};
doc = {
dir = "./doc";
};
};
};
}