about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.envrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index a5b4b96..c0b3b3e 100644
--- a/.envrc
+++ b/.envrc
@@ -1,4 +1,12 @@
 layout go
-use flake
+if type -P lorri &>/dev/null; then
+  if test -n "$TMPDIR"; then
+    TMPDIR=$(readlink -f $TMPDIR)
+  fi
+  eval "$(lorri direnv --flake .)"
+else
+  echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+  use nix
+fi
 
 dotenv