2022-05-26 21:48:31 +03:00
|
|
|
export REPO_ROOT="$(git rev-parse --show-toplevel)"
|
2022-11-07 21:51:24 +02:00
|
|
|
export REPO_DATA_DIR="$REPO_ROOT/.data"
|
2022-05-26 21:48:31 +03:00
|
|
|
if ! has nix_direnv_version || ! nix_direnv_version 2.1.0; then
|
|
|
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.0/direnvrc" "sha256-FAT2R9yYvVg516v3LiogjIc8YfsbWbMM/itqWsm5xTA="
|
|
|
|
fi
|
2022-05-26 21:51:03 +03:00
|
|
|
use flake "${REPO_ROOT}#${DEVSHELL_ATTR:-$(basename $PWD)}"
|