330 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *

This commit is contained in:
Max Känner 2024-05-20 21:22:40 +02:00
parent d613665f5c
commit 2072020b9c
2 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,7 @@
}: let
cfg = config.myConfig.shell;
in {
imports = [./zsh.nix ./bat.nix ./btop.nix ./neovim.nix];
imports = [./zsh.nix ./bat.nix ./btop.nix ./neovim.nix ./direnv.nix];
options.myConfig.shell = {
enable = lib.mkEnableOption "my shell environment";
@ -17,6 +17,7 @@ in {
neovim.enable = lib.mkDefault true;
btop.enable = lib.mkDefault true;
bat.enable = lib.mkDefault true;
direnv.enable = lib.mkDefault true;
};
};
}

View 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;
};
};
}