The om develop
command should be used indirectly in direnv, via the use omnix
directive in your .envrc
.
Getting started
-
Put this in your
.envrc
file:source_url \ https://omnix.page/om/develop/omnixrc/v1 \ 'sha256-FBAVRYkaexKeFKQGUxaPHqhBnqA7km7++O77dKiyD0I=' watch_file om.yaml use omnix
-
You should also create an empty (or fleshed out)
om.yaml
file in your project to avoid Nix evaluation:touch om.yaml
What does it do?
use omnix
wraps use flake
(of nix-direnv) providing additional capabilities:
-
Run
om health
to check the health of the Nix environment.-
Run
cachix use
automatically if the project uses cachix.
-
Run
- Print a welcome text after spawning the Nix devshell.
The ideal goal here being that cd
βing to a project should do everything necessary to get you started immediately.
Welcome text
The welcome text can be configured in your om.yaml
file. For example:
develop:
default:
readme: |
πΎ Welcome to the **omnix** project
To run omnix,
```sh-session
just watch <args>
```
(Now, as you edit the Rust sources, the above will reload!)
ππ Run 'just' to see more commands. See <https://nixos.asia/en/vscode> for IDE setup.
Revision History for omnixrc
v1
-
Initial release using pinned nixpkgs for omnix
1.3.0
.