dotfiles/nix/modules/home-manager/features/cli/direnv.nix

19 lines
309 B
Nix

{ config, lib, ... }:
with lib;
{
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
config = mkIf config.features.cli.direnv.enable {
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
silent = true;
};
};
}