23 lines
383 B
Nix
23 lines
383 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.modules.direnv;
|
|
in
|
|
{
|
|
options.modules.direnv = {
|
|
enable = lib.mkEnableOption "direnv";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
programs.direnv = {
|
|
enable = true;
|
|
# enableBashIntegration = true; # see note on other shells below
|
|
enableFishIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
};
|
|
}
|