summaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-14 05:10:43 -0700
committerFuwn <[email protected]>2024-09-14 05:10:43 -0700
commitef71472bfbe457224a24932856e474ba4e8fbf29 (patch)
treef5c819df5981664ca1e100c66ff64366adac8336 /.envrc
parentgit: ignore all nix results (diff)
downloadnixos-config-ef71472bfbe457224a24932856e474ba4e8fbf29.tar.xz
nixos-config-ef71472bfbe457224a24932856e474ba4e8fbf29.zip
nix: use lorri as development shell
Diffstat (limited to '.envrc')
-rw-r--r--.envrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 051d09d..df422cf 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,9 @@
-eval "$(lorri direnv)"
+#!/usr/bin/env bash
+
+if type -P lorri &>/dev/null; then
+ eval "$(lorri direnv)"
+else
+ echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+
+ use nix
+fi