about summary refs log tree commit diff
path: root/modules/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-07-16 10:55:37 +0300
committerAzat Bahawi <azat@bahawi.net>2023-07-16 10:55:37 +0300
commitd5c760d9813d66de71786c6343afa8c4b1526696 (patch)
tree48aed217be6e0e75d705ffce691e7c9b9b3c7e95 /modules/common
parent2023-07-15 (diff)
2023-07-16
Diffstat (limited to 'modules/common')
-rw-r--r--modules/common/direnv.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/common/direnv.nix b/modules/common/direnv.nix
index 6ec39d1..743f3cf 100644
--- a/modules/common/direnv.nix
+++ b/modules/common/direnv.nix
@@ -10,13 +10,17 @@ in {
     mkEnableOption "direnv";
 
   config = mkIf cfg.enable {
-    hm.programs.direnv = {
-      enable = true;
-      config.global = {
-        strict_env = true;
-        warn_timeout = 0;
+    hm = {
+      home.sessionVariables.DIRENV_LOG_FORMAT = "";
+
+      programs.direnv = {
+        enable = true;
+        config.global = {
+          strict_env = true;
+          warn_timeout = "1h";
+        };
+        nix-direnv.enable = true;
       };
-      nix-direnv.enable = true;
     };
   };
 }

Consider giving Nix/NixOS a try! <3