export TOP_HEAD="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

if ! use nvidia; then
  unset NVIDIA_VERSION
  echo "robolibs: NVIDIA driver not detected; using nixGLIntel/nixVulkanIntel fallback"
fi
use display

use flake --impure --option warn-dirty false

export PATH="$PATH:$PWD/target/debug:$PWD/target/release"

export_alias _b "cd $TOP_HEAD && make build; cd -"
export_alias _c "cd $TOP_HEAD && make compile; cd -"
export_alias _r "cd $TOP_HEAD && make run; cd -"
export_alias _t "cd $TOP_HEAD && make test; cd -"
