1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00

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.
This commit is contained in:
Austin Horstman 2025-04-21 09:19:27 -07:00 committed by GitHub
parent 82ee14ff60
commit ddda2b1f20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,6 +200,6 @@ in
)
'');
home.sessionVariables = lib.mkIf cfg.silent { DIRENV_LOG_FORMAT = ""; };
home.sessionVariables = lib.mkIf (cfg.silent && !isVersion236orHigher) { DIRENV_LOG_FORMAT = ""; };
};
}