From ddda2b1f20ffc92b803fc5c8c0d80bbfb54cd478 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 21 Apr 2025 09:19:27 -0700 Subject: [PATCH] direnv: only set sessionVariable for old version (#6842) Discussion and retesting in https://github.com/NixOS/nixpkgs/pull/398717. The env variable is actually not needed when you use the config. --- modules/programs/direnv.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/direnv.nix b/modules/programs/direnv.nix index f38ad1386..eb9dde529 100644 --- a/modules/programs/direnv.nix +++ b/modules/programs/direnv.nix @@ -200,6 +200,6 @@ in ) ''); - home.sessionVariables = lib.mkIf cfg.silent { DIRENV_LOG_FORMAT = ""; }; + home.sessionVariables = lib.mkIf (cfg.silent && !isVersion236orHigher) { DIRENV_LOG_FORMAT = ""; }; }; }