dotfiles/modules/home/direnv/default.nix

16 lines
286 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let cfg = config.modules.shell.direnv;
in {
options.modules.shell.direnv = { enable = mkOption { default = false; }; };
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
};
}