Personal NixOS flake

feat(direnv): add that thing isabel said you should add to your direnv config

+11
+11
home/emily/cli/direnv.nix
··· 4 4 direnv = { 5 5 enable = true; 6 6 nix-direnv.enable = true; 7 + stdlib = '' 8 + : ''${XDG_CACHE_HOME:=$HOME/.cache} 9 + declare -A direnv_layout_dirs 10 + 11 + direnv_layout_dir() { 12 + echo "''${direnv_layout_dirs[$PWD]:=$( 13 + echo -n "$XDG_CACHE_HOME"/direnv/layouts/ 14 + echo -n "$PWD" | sha1sum | cut -d ' ' -f 1 15 + )}" 16 + } 17 + ''; 7 18 }; 8 19 }; 9 20 home.packages = with pkgs; [