mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
parent
c2f806e60a
commit
36317d4d38
1 changed files with 3 additions and 0 deletions
|
@ -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 = ""; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue