direnv: add silent option

PR #5586
This commit is contained in:
Shogo Takata 2024-06-29 15:19:35 +09:00 committed by Robert Helgesson
parent c2f806e60a
commit 36317d4d38
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -95,6 +95,7 @@ in {
package = mkPackageOption pkgs "nix-direnv" { };
};
silent = mkEnableOption "silent mode, that is, disabling direnv logging";
};
config = mkIf cfg.enable {
@ -163,5 +164,7 @@ in {
}
)
'');
home.sessionVariables = lib.mkIf cfg.silent { DIRENV_LOG_FORMAT = ""; };
};
}