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:
- a registry of flake templates that you can choose from
- support for template paramters that can be filled in by the user
Available templates
Description | Command |
---|---|
Haskell project template | om init haskell-template |
Rust project template | om init rust-nix-template |
home-manager template | om 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
.