services-flake/flake.nix
Shivaraj B H 51ecb71351
docs(example): add share-services example (#137)
Adds a 2nd example demonstrating how to share services between flakes.

Also move the current example to `./example/simple`.
2024-03-11 14:05:30 -04:00

40 lines
1019 B
Nix

{
outputs = _: {
processComposeModules.default = ./nix;
templates.default = {
description = "Example flake using process-compose-flake";
path = builtins.path { path = ./example; filter = path: _: baseNameOf path == "flake.nix"; };
};
lib = import ./nix/lib.nix;
# Config for https://github.com/srid/nixci
# To run this, `nix run github:srid/nixci`
nixci.default = let overrideInputs = { "services-flake" = ./.; }; in {
simple-example = {
inherit overrideInputs;
dir = "./example/simple";
};
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";
};
};
};
}