summaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
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