aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/direnv/direnvrc
blob: 1ecee89f0a04f41e995f0235f5a8494bad6b7879 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Global direnv runtime config.
#
# Load nix-direnv on demand from an upstream URL pinned by content hash.
# direnv caches it under $XDG_CACHE_HOME/direnv/, so the network fetch
# happens exactly once per pin bump.
#
# To upgrade: bump the version in the URL and replace the sha256 with
# the new one. direnv prints the expected hash on mismatch.
if ! has nix_direnv_version || ! nix_direnv_version 3.1.1; then
  source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.1/direnvrc" \
    "sha256-p+fzQdrms/hDa7g+soShAybJNo4bN4SIAeSfqNKgD5I="
fi