Local .direnv per project
This commit is contained in:
parent
fbc2306209
commit
725ffc6b11
2 changed files with 1 additions and 7 deletions
|
@ -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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
};
|
||||
};
|
||||
ignores = [
|
||||
".direnv"
|
||||
".envrc"
|
||||
"shell.nix"
|
||||
# Ruby dependencies in source tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue