330 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *
This commit is contained in:
		| @@ -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; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|   | ||||
							
								
								
									
										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