config/modules/home/apps/tools/direnv/default.nix
2024-05-23 20:48:19 +00:00

27 lines
423 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
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;
};
};
home.sessionVariables = {
DIRENV_LOG_FORMAT = "";
};
};
}