nixos/modules/home/shell/direnv.nix

21 lines
409 B
Nix
Raw Permalink Normal View History

{
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;
nix-direnv.enable = true;
};
};
}