Local .direnv per project

This commit is contained in:
Charlotte Van Petegem 2020-07-14 17:08:41 +02:00
parent fbc2306209
commit 725ffc6b11
2 changed files with 1 additions and 7 deletions

View file

@ -3,7 +3,6 @@
{
custom.zfs.homeLinks = [
{ path = ".local/share/direnv"; type = "cache"; }
{ path = ".cache/direnv"; type = "cache"; }
];
nix.extraOptions = ''
@ -21,12 +20,6 @@
strict_env = true;
};
};
stdlib = ''
: ''${XDG_CACHE_HOME:=$HOME/.cache}
hash=$(echo -n $PWD | shasum | cut -d' ' -f 1)
direnv_layout_dir=$XDG_CACHE_HOME/direnv/layouts/"''$(echo -n $PWD | sed 's#/#-#g')/$hash"
mkdir -p "$direnv_layout_dir"
'';
};
};
}

View file

@ -26,6 +26,7 @@
};
};
ignores = [
".direnv"
".envrc"
"shell.nix"
# Ruby dependencies in source tree