all repos — nixfiles @ 223b76c2fc27748ffa104ca308427849734a4b63

System and user configuration, managed by nix and home-manager

direnv: store layout underneath project why: - simplifies cleanup of direnv data after removing a project - moving a project moves the cache instead of needing a rebuild

Alan Pearce
commit

223b76c2fc27748ffa104ca308427849734a4b63

parent

4ee0d5b478831c26b7147155c916fa98cd8892c5

1 file changed, 0 insertions(+), 10 deletions(-)

changed files
M user/settings/development/base.nix → user/settings/development/base.nix
@@ -154,16 +154,6 @@ "${homeDirectory}/projects/codeberg.org/alanpearce"
]; }; }; - stdlib = '' - declare -A direnv_layout_dirs - direnv_layout_dir() { - echo "''${direnv_layout_dirs[$PWD]:=$( - local hash="$(${pkgs.coreutils}/bin/sha256sum - <<<"''${PWD}" | cut -c-7)" - local path="''${PWD//[^a-zA-Z0-9]/-}" - echo "${config.xdg.cacheHome}/direnv/layouts/''${hash}''${path}" - )}" - } - ''; }; services.lorri = { enable = pkgs.stdenv.isLinux;