summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-02-07 08:42:04 -0500
committerBen Sima <ben@bsima.me>2022-02-07 08:42:04 -0500
commitf21e2920872fdf3c92dc815d51d6da032d157fea (patch)
tree156e2e53151369083981b67c9846fcaed83785f9
parent37c7c93a11767fac68e2a5e94a8c8d36fc8c7a30 (diff)
Use nix-direnv
-rw-r--r--.envrc6
-rw-r--r--.gitignore1
2 files changed, 7 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index cbf6eda..011073f 100644
--- a/.envrc
+++ b/.envrc
@@ -1,3 +1,9 @@
+if ! has nix_direnv_version || ! nix_direnv_version 1.5.1; then
+ source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.5.1/direnvrc" "sha256-p4CDMJjuBmEh9pkn2aoJrZqr0DlPZHPU7eXOSDzzcuo="
+fi
+
+use nix
+
export BIZ_ROOT=$PWD
PATH_add $BIZ_ROOT/Biz/Ide
diff --git a/.gitignore b/.gitignore
index 7c56224..e9beede 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ tags
*~
dist*
.envrc.local
+.direnv/