feat(user:shell): add system modules for zsh/bash user shell configuration
This commit is contained in:
		
							parent
							
								
									48c0e8e005
								
							
						
					
					
						commit
						ea1c418c73
					
				
					 7 changed files with 53 additions and 34 deletions
				
			
		
							
								
								
									
										22
									
								
								system/modules/user/shell/zsh/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								system/modules/user/shell/zsh/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
{ lib, config, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkIf;
 | 
			
		||||
  userShell = config.systemModules.user.shell;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  config = mkIf (userShell == "zsh") {
 | 
			
		||||
    users.users.ooks.shell = pkgs.zsh;
 | 
			
		||||
    programs.zsh = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      enableCompletion = true;
 | 
			
		||||
      syntaxHighlighting.enable = true;
 | 
			
		||||
      autosuggestions = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        async = true;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    environment.pathsToLink = ["/share/zsh"];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue