summaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-07-30 14:55:41 -0400
committerBen Sima <ben@bsima.me>2022-07-30 14:55:41 -0400
commit8f9de177e3cfed26cf9d67fd263d26ba85640eb2 (patch)
tree7c9c98746a55116ca7293a57a6123dcf473daa6a /.envrc
Initialize dev shell
Diffstat (limited to '.envrc')
-rw-r--r--.envrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..8cce2ff
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,9 @@
+# setup dev environment using direnv
+#
+ 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
+#
+# if direnv doesn't detect changes to the nix environment, just touch .envrc and
+# it will refresh
+ use nix