-
Notifications
You must be signed in to change notification settings - Fork 2
/
.envrc
22 lines (21 loc) · 622 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Load the development shell using Nix, via one of:
#
# - use flake https://direnv.net/man/direnv-stdlib.1.html#codeuse-flake-ltinstallablegtcode
# - Lorri https://github.com/nix-community/lorri
# - use nix https://direnv.net/man/direnv-stdlib.1.html#codeuse-nix-code
#
# in that order of preference
if has lorri; then
echo "direnv: loading env from lorri ($(type -p lorri))"
eval "$(lorri direnv)"
elif has use_flake; then
echo "direnv: loading env from use_flake"
use flake
exit
elif has use_nix; then
echo "direnv: loading env from use_nix"
use nix
exit
else
echo "direnv: failed to load nix env"
fi