29 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   config,
 | |
|   osConfig,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib) mkIf;
 | |
|   cfg = config.ooknet.shell.zsh;
 | |
|   admin = osConfig.ooknet.host.admin;
 | |
| in {
 | |
|   imports = [
 | |
|     ./plugins.nix
 | |
|   ];
 | |
| 
 | |
|   config = mkIf (cfg.enable || admin.shell == "zsh") {
 | |
|     programs.zsh = {
 | |
|       enable = true;
 | |
|       autocd = true;
 | |
|       enableCompletion = true;
 | |
|       autosuggestion.enable = true;
 | |
|       syntaxHighlighting.enable = true;
 | |
|       dotDir = ".config/zsh";
 | |
|       history = {
 | |
|         expireDuplicatesFirst = true;
 | |
|         path = "${config.xdg.dataHome}/zsh_history";
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |