Skip to content

Commit

Permalink
refactor(nix): Split omnix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 24, 2024
1 parent 95e28dc commit fa2c7dc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
34 changes: 1 addition & 33 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,6 @@

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";
};
without-flake-parts-example = {
inherit overrideInputs;
dir = "./example/without-flake-parts";
};
test = {
inherit overrideInputs;
dir = "./test";
};
dev = {
inherit overrideInputs;
dir = "./dev";
};
doc = {
dir = "./doc";
};
};
om = import ./nix/omnix.nix;
};
}
38 changes: 38 additions & 0 deletions nix/omnix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
let
root = ../.;
in
{
# CI configuration; to run locally, `nix --accept-flake-config github:juspay/omnix ci`
ci.default = let overrideInputs = { "services-flake" = root; }; in {
simple-example = {
inherit overrideInputs;
dir = "./example/simple";
};
llm-example = {
inherit overrideInputs;
dir = "./example/llm";
};
share-services-example = {
overrideInputs = {
inherit (overrideInputs) services-flake;
northwind = (root + /example/share-services/northwind);
};
dir = "./example/share-services/pgweb";
};
without-flake-parts-example = {
inherit overrideInputs;
dir = "./example/without-flake-parts";
};
test = {
inherit overrideInputs;
dir = "./test";
};
dev = {
inherit overrideInputs;
dir = "./dev";
};
doc = {
dir = "./doc";
};
};
}

0 comments on commit fa2c7dc

Please sign in to comment.