add(nix): lorri integration (#1200)

Check, if direnv supports lorri, if not run
`use_flake` directly from direnv.
This commit is contained in:
a-kenji 2022-03-10 15:48:55 +01:00 committed by GitHub
parent a66ce1c86c
commit a25fd88dbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
.envrc
View file

@ -1 +1,5 @@
use_flake if command -v lorri >/dev/null 2>&1; then
eval "$(lorri direnv)"
else
use flake
fi