properly enforced optional dependencies for yazi.
This commit is contained in:
		
							parent
							
								
									9b9a075715
								
							
						
					
					
						commit
						7fc88db93c
					
				
					 2 changed files with 23 additions and 1 deletions
				
			
		
							
								
								
									
										22
									
								
								configs/home-manager/yazi.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								configs/home-manager/yazi.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,22 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}: {
 | 
				
			||||||
 | 
					  programs.yazi.enable = true;
 | 
				
			||||||
 | 
					  # optional dependencies for yazi.
 | 
				
			||||||
 | 
					  programs={
 | 
				
			||||||
 | 
					    fzf.enable=true;
 | 
				
			||||||
 | 
					    ripgrep.enable=true;
 | 
				
			||||||
 | 
					    zoxide.enable=true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					  home.packages = with pkgs; [
 | 
				
			||||||
 | 
					    ffmpeg
 | 
				
			||||||
 | 
					    poppler_utils
 | 
				
			||||||
 | 
					    jq
 | 
				
			||||||
 | 
					    fd
 | 
				
			||||||
 | 
					    imagemagick
 | 
				
			||||||
 | 
					    p7zip
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -10,6 +10,7 @@
 | 
				
			||||||
    ../../configs/home-manager/ssh-agent.nix
 | 
					    ../../configs/home-manager/ssh-agent.nix
 | 
				
			||||||
    ../../configs/home-manager/zsh.nix
 | 
					    ../../configs/home-manager/zsh.nix
 | 
				
			||||||
    ../../configs/home-manager/zellij
 | 
					    ../../configs/home-manager/zellij
 | 
				
			||||||
 | 
					    ../../configs/home-manager/yazi.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  user = {
 | 
					  user = {
 | 
				
			||||||
| 
						 | 
					@ -44,7 +45,6 @@
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
    yazi.enable = true;
 | 
					 | 
				
			||||||
    fzf.enable = true;
 | 
					    fzf.enable = true;
 | 
				
			||||||
    eza.enable = true;
 | 
					    eza.enable = true;
 | 
				
			||||||
    ripgrep.enable = true;
 | 
					    ripgrep.enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue