You can configure Omnix’s behaviour on your repository by creating a top-level om.yaml file. If there is no om.yaml file, Omnix will evaluate the flake’s .#om output instead. Prefer creating a om.yaml in general, as it is faster to read than evaluating complex Nix flakes.
Omnix Configuration
-
om initOmnix templates can be defined by adding a
om.templateflake output configuration. This should be an attrset of templates. The value should contain the keystemplate(referring to original flake template) as well asparams, defined as follows:The configuration can also include a
testskey that defines a list of tests to run on the template. Each test is an attrset withparamsandassertskeys that indicates the parameter values to test along with the path existance assertions. For example: -
om healthTo add project specific health checks or configure health checks, add the following to your
om.yaml:To see all available configuration options, run
om health --dump-schema. This will dump the schema of the configuration in JSON format. Convert that to YAML to see what can be added under theom.health.defaultkey of yourom.yaml. -
om develop -
om ciBy default,
om ciwill build the top-level flake, but you can tell it to build sub-flakes (here,./dir1and./dir2) by adding the following to your Om configuration:[!NOTE] This currently requires an explicit CI configuration in your flake, setting
om.ci.default.root.dirto.. -
Omnix
Omnix Configuration - Configuration