summary refs log tree commit diff stats
path: root/user/settings/development
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 09:08:54 +0200
committerAlan Pearce2024-04-28 09:08:54 +0200
commitd42ee8edeb7983ca7031a334c8f6c36f9c102595 (patch)
tree3018a274cbfa8353c6b6465b20a80979d4f0ba62 /user/settings/development
parent7b5f46f461ec3f3622aad1c0601d655a9a852f19 (diff)
downloadnixfiles-d42ee8edeb7983ca7031a334c8f6c36f9c102595.tar.lz
nixfiles-d42ee8edeb7983ca7031a334c8f6c36f9c102595.tar.zst
nixfiles-d42ee8edeb7983ca7031a334c8f6c36f9c102595.zip
dev/base: configure direnv to not spam updated variables
Diffstat (limited to 'user/settings/development')
-rw-r--r--user/settings/development/base.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix
index dcbf370f..e86a0b6e 100644
--- a/user/settings/development/base.nix
+++ b/user/settings/development/base.nix
@@ -60,6 +60,18 @@
     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