28 lines
423 B
Nix
28 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 = "";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|