all repos — nixfiles @ d42ee8edeb7983ca7031a334c8f6c36f9c102595

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

dev/base: configure direnv to not spam updated variables
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 09:08:54 +0200
commit

d42ee8edeb7983ca7031a334c8f6c36f9c102595

parent

7b5f46f461ec3f3622aad1c0601d655a9a852f19

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -974,6 +974,7 @@ (use-package envrc
   :defer 2
   :config (progn
+            (setq envrc-show-summary-in-minibuffer nil)
             (envrc-global-mode)))
 
 (use-package magit
M user/settings/development/base.nixuser/settings/development/base.nix
@@ -60,6 +60,18 @@ enable = true;     nix-direnv = {
       enable = true;
     };
+    config = {
+      global = {
+        disable_stdin = true;
+        strict_env = true;
+        hide_env_diff = true;
+      };
+      whitelist = {
+        prefix = with config.home; [
+          "${homeDirectory}/projects/alanpearce.eu"
+        ];
+      };
+    };
   };
   xdg.configFile."direnv/direnvrc".text = ''
     declare -A direnv_layout_dirs