]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/direnv.nix
office: pdfScale dependencies
[julm/julm-nix.git] / home-manager / profiles / direnv.nix
1 {
2 programs.direnv.enable = true;
3 programs.direnv.nix-direnv.enable = true;
4
5 xdg.configFile."direnv/direnvrc".text = ''
6 : ''${XDG_CACHE_HOME:=$HOME/.cache}
7 declare -A direnv_layout_dirs
8 direnv_layout_dir() {
9 echo "''${direnv_layout_dirs[$PWD]:=$(
10 echo -n "$XDG_CACHE_HOME"/direnv/layouts/''${PWD##*/}-
11 echo -n "$PWD" | shasum | cut -d ' ' -f 1
12 )}"
13 }
14 '';
15 }