summary refs log tree commit diff stats
path: root/.envrc
diff options
context:
space:
mode:
authorAlan Pearce2024-12-28 19:41:04 +0100
committerAlan Pearce2024-12-28 19:41:04 +0100
commitc459e9f75cb1ecbf41bd5023714303a522494018 (patch)
tree14169c9907a6852928c556257c0e0a26048f713f /.envrc
parent7b7960b098be7d6092df90ed9d9d7e6c02fa33a8 (diff)
downloadnixfiles-c459e9f75cb1ecbf41bd5023714303a522494018.tar.lz
nixfiles-c459e9f75cb1ecbf41bd5023714303a522494018.tar.zst
nixfiles-c459e9f75cb1ecbf41bd5023714303a522494018.zip
re-configure deploy-rs
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 00000000..ed8f9482
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,9 @@
+if type -P lorri &>/dev/null; then
+  if test -n "$TMPDIR"; then
+    export TMPDIR="$(readlink -f $TMPDIR)"
+  fi
+  eval "$(lorri direnv --flake .)"
+else
+  echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+  use nix
+fi