]> Git — Sourcephile - julm/julm-nix.git/blob - homes/softwares/direnv.nix
oignon: add openvpn for riseup
[julm/julm-nix.git] / homes / softwares / direnv.nix
1 {
2 xdg.configFile."direnv/direnvrc".text = ''
3 : ''${XDG_CACHE_HOME:=$HOME/.cache}
4 declare -A direnv_layout_dirs
5 direnv_layout_dir() {
6 echo "''${direnv_layout_dirs[$PWD]:=$(
7 echo -n "$XDG_CACHE_HOME"/direnv/layouts/''${PWD##*/}-
8 echo -n "$PWD" | shasum | cut -d ' ' -f 1
9 )}"
10 }
11 '';
12 }