summaryrefslogtreecommitdiffstats
path: root/.envrc
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-03-10 15:48:55 +0100
committerGitHub <noreply@github.com>2022-03-10 15:48:55 +0100
commita25fd88dbb2e35f823c9dea34bdbc82149f6bd70 (patch)
tree3099b0b8e9bef54af5f69b0a5ffcf2f3e3a1fe75 /.envrc
parenta66ce1c86c1e21e8ab9dff41d87d44856420e2c7 (diff)
add(nix): lorri integration (#1200)
Check, if direnv supports lorri, if not run `use_flake` directly from direnv.
Diffstat (limited to '.envrc')
-rw-r--r--.envrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index c4b17d79a..e8b832cee 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,5 @@
-use_flake
+if command -v lorri >/dev/null 2>&1; then
+ eval "$(lorri direnv)"
+else
+ use flake
+fi