Direnv Integration
Rensa provides a custom direnv integration to make your development experience smoother.
It allows you to automatically load development shells defined in your cells.
Note
This integration is based on nix-direnv but has been improved and optimized specifically for Rensa usage.
Setup
-
Create
.envrc: Add the following to your.envrcfile:source $(fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/v0.3.0/direnvrc "sha256-u7+KEz684NnIZ+Vh5x5qLrt8rKdnUNexewBoeTcEVHQ=") use ren //backend/devShells/defaultThis will automatically load the devShell
defaultdefined incells/backend/devShells.nix. -
Allow Direnv: Run
direnv allowto trust the configuration.
Updating
To update the direnvrc to the latest version (or a specific version), you can use direnv fetchurl.
-
Run fetchurl:
direnv fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/v0.3.0/direnvrcNote: Replace
v0.3.0with the desired version tag. -
Update
.envrc: The command above will output a new hash. Replace the previous version and hash in your.envrcwith the new values.