2 programs.direnv.enable = true;
3 programs.direnv.nix-direnv.enable = true;
5 xdg.configFile."direnv/direnvrc".text = ''
6 : ''${XDG_CACHE_HOME:=$HOME/.cache}
7 declare -A direnv_layout_dirs
9 echo "''${direnv_layout_dirs[$PWD]:=$(
10 echo -n "$XDG_CACHE_HOME"/direnv/layouts/''${PWD##*/}-
11 echo -n "$PWD" | shasum | cut -d ' ' -f 1