diff --git a/users/ryan/common.nix b/users/ryan/common.nix
index e2e5890..1bc3474 100644
--- a/users/ryan/common.nix
+++ b/users/ryan/common.nix
@@ -36,6 +36,16 @@
enableZshIntegration = true;
};
+ # Entering a directory with an allowed .envrc (`use flake`) loads that
+ # flake's devShell; leaving unloads it. nix-direnv caches the shell and
+ # keeps it from being garbage-collected, so it's instant after the first time.
+ programs.direnv = {
+ enable = true;
+ enableZshIntegration = true;
+ nix-direnv.enable = true;
+ config.global.hide_env_diff = true; # skip the long "+VAR -VAR" list on every cd
+ };
+
programs.gpg.enable = true;
programs.git = {