dotfiles/modules/home/tools/direnv/default.nix

22 lines
334 B
Nix
Raw Permalink Normal View History

{
config,
lib,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.tools.direnv;
in {
options.${namespace}.tools.direnv = {
enable = mkEnableOption "direnv";
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}