From d3baf7c8e2adf9dc8db8c46dd4b343b03c610767 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Sun, 6 Jul 2025 10:33:52 -0400 Subject: [PATCH] direnv bug workaround --- src/user/modules/utils/modules/dev/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/user/modules/utils/modules/dev/default.nix b/src/user/modules/utils/modules/dev/default.nix index 4a89e70..7ff8278 100644 --- a/src/user/modules/utils/modules/dev/default.nix +++ b/src/user/modules/utils/modules/dev/default.nix @@ -31,8 +31,18 @@ in }; }; - home.sessionVariables = { - DIRENV_LOG_FORMAT = ""; + home = { + sessionVariables = { + DIRENV_LOG_FORMAT = ""; + }; + + # Workaround for direnv_log bug + # https://github.com/direnv/direnv/issues/1418#issuecomment-2820125413 + file.".config/direnv/direnv.toml" = { + enable = true; + force = true; + text = ""; + }; }; }; }