4 nix-direnv.enable = true;
5 enableBashIntegration = true;
8 xdg.configFile."direnv/direnvrc".text = ''
9 : ''${XDG_CACHE_HOME:=$HOME/.cache}
10 declare -A direnv_layout_dirs
12 echo "''${direnv_layout_dirs[$PWD]:=$(
13 echo -n "$XDG_CACHE_HOME"/direnv/layouts/''${PWD##*/}-
14 echo -n "$PWD" | shasum | cut -d ' ' -f 1