2024-07-08 14:19:38 +00:00
|
|
|
# shellcheck shell=bash
|
2024-01-04 15:22:14 +00:00
|
|
|
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
|
|
|
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
|
2023-09-21 16:29:34 +00:00
|
|
|
fi
|
|
|
|
|
2024-03-24 23:32:03 +00:00
|
|
|
watch_file .direnv/selected-shell
|
2024-03-01 11:15:44 +00:00
|
|
|
|
|
|
|
if [ -e .direnv/selected-shell ]; then
|
2024-07-08 14:25:16 +00:00
|
|
|
use flake ".#$(cat .direnv/selected-shell)"
|
2024-03-01 11:15:44 +00:00
|
|
|
else
|
|
|
|
use flake
|
|
|
|
fi
|