services-flake/flake.nix
Abhishek Singh dafaeb048d
explicitly define project root in treefmt (#103)
* explicitly define project root in treefmt

* define `projectRootFile` in `treefmt`

* make `treefmt.projectRoot` as `inputs.services-flake`

* use github flake url

* flake.nix as projectRootFile

* add comment

* force override-input in test flake

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-02-20 11:06:02 +05:30

33 lines
768 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 {
example = {
inherit overrideInputs;
dir = "./example";
};
test = {
inherit overrideInputs;
dir = "./test";
};
dev = {
inherit overrideInputs;
dir = "./dev";
};
doc = {
dir = "./doc";
};
};
};
}