config/modules/home/apps/tools/direnv/default.nix
2025-04-27 11:11:51 -04:00

31 lines
529 B
Nix

{
config,
lib,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.tools.direnv;
in {
options.apps.tools.direnv = with types; {
enable = mkBoolOpt false "Enable Direnv";
};
config = mkIf cfg.enable {
programs = {
direnv = {
enable = true;
nix-direnv.enable = true;
config = {
global = {
log_format = "-";
log_filter = "^$";
};
};
};
};
home.sessionVariables = {
DIRENV_LOG_FORMAT = "";
};
};
}