about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-18T15·29+0100
committerFlorian Klink <flokli@flokli.de>2019-11-18T15·29+0100
commitdbd7b4807a6364630d43edf309eb4b43f4bb3658 (patch)
tree6150837d72f22232bdf123acd55edc34b9c1f47c /.envrc
parent987b539e335ebc93eba9549ebf8204d612b7a148 (diff)
use statik to bundle assets, add nix-shell/lorri .envrc
Diffstat (limited to '.envrc')
-rw-r--r--.envrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 000000000000..211e0d451c4e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,13 @@
+# This configures [direnv](https://direnv.net/) if installed and enabled to
+# automatically enter the nix-shell defined in `shell.nix`,
+# either by using lorri if available, or nix-shell otherwise.
+
+if type lorri &>/dev/null; then
+    eval "$(lorri direnv)"
+else
+    # fall back to using direnv's builtin nix support (blocking)
+    use nix
+fi
+
+# Load private overrides
+[[ -f .envrc.private ]] && source_env .envrc.private