aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc
diff options
context:
space:
mode:
Diffstat (limited to '.envrc')
-rw-r--r--.envrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 00000000..dd2752c9
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,13 @@
+if type lorri &>/dev/null; then
+ echo "direnv: using lorri from PATH ($(type -p lorri))"
+ eval "$(lorri direnv)"
+else
+ # fall back to using direnv's builtin nix support
+ # to prevent bootstrapping problems.
+ use nix
+ NIX_ENFORCE_PURITY=0
+fi
+# source an additional user-specific .envrc in ./.envrc-local
+if [ -e .envrc-local ]; then
+ source .envrc-local
+fi