Skip to content

Commit

Permalink
direnv: add silent option
Browse files Browse the repository at this point in the history
  • Loading branch information
pineapplehunter authored and rycee committed Jun 29, 2024
1 parent c2f806e commit 36317d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/programs/direnv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ in {
package = mkPackageOption pkgs "nix-direnv" { };
};

silent = mkEnableOption "silent mode, that is, disabling direnv logging";
};

config = mkIf cfg.enable {
Expand Down Expand Up @@ -163,5 +164,7 @@ in {
}
)
'');

home.sessionVariables = lib.mkIf cfg.silent { DIRENV_LOG_FORMAT = ""; };
};
}

0 comments on commit 36317d4

Please sign in to comment.