about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-07-29 20:25:09 +0300
committerVika <vika@fireburn.ru>2023-07-29 20:25:09 +0300
commit2297a4940ed55c1e8425f47cf54734818e9ea5b3 (patch)
tree8326feed6b44a39b0f51423b8faae909c12cfc57 /.envrc
parentd5b7f7b180b487c01616763559fa38cbed8bb45e (diff)
.envrc: move to root
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