about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
Diffstat (limited to '.envrc')
-rw-r--r--.envrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..9ae9b76
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,8 @@
+if has nix; then
+    if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then
+        source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" \
+            "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
+    fi
+    nix_direnv_watch_file ./shell.nix
+    use flake .
+fi