mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
committed by
Robert Helgesson
parent
c2f806e60a
commit
36317d4d38
@@ -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 = ""; };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user