2024-05-20 21:22:40 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.myConfig.shell.direnv;
|
|
|
|
in {
|
|
|
|
options.myConfig.shell.direnv = {
|
|
|
|
enable = lib.mkEnableOption "direnv for changing the environment when entering a directory";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableZshIntegration = true;
|
2024-08-07 17:25:17 +02:00
|
|
|
nix-direnv.enable = true;
|
2024-05-20 21:22:40 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|