330 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *
This commit is contained in:
19
modules/home/shell/direnv.nix
Normal file
19
modules/home/shell/direnv.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user