om init

important

om init is available as a beta-feature.

The om init command provides a better nix flake init experience. Specifically, it provides:

  1. a registry of flake templates that you can choose from
  2. support for template paramters that can be filled in by the user

Available templates

DescriptionCommand
Haskell project templateom init haskell-template
Rust project templateom init rust-nix-template
home-manager templateom init nix-dev-home

Adding your own project templates

In future, you would be able to directly initialize a project from a git repository, viz.: om init <url>. This is explicitly not yet supported right now, because:

note

The specification for template paramters are yet to be finalized. Until, then the relevant parameter configuration is tied to the registry in omnix repo. See crates/omnix-init/registry.