Added zoxide module
This commit is contained in:
		
							parent
							
								
									4e46c7ea90
								
							
						
					
					
						commit
						cb94deac89
					
				
					 2 changed files with 23 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,7 @@
 | 
			
		|||
      firefox.enable = true;
 | 
			
		||||
      gpg.enable = true;
 | 
			
		||||
      kitty.enable = true;
 | 
			
		||||
      zoxide.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    tools = {
 | 
			
		||||
| 
						 | 
				
			
			@ -33,6 +34,5 @@
 | 
			
		|||
  # misc utils without custom config
 | 
			
		||||
  programs = {
 | 
			
		||||
    fzf.enable = true;
 | 
			
		||||
    zoxide.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										22
									
								
								modules/home/programs/zoxide/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								modules/home/programs/zoxide/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  cfg = config.${namespace}.programs.zoxide;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.programs.zoxide = {
 | 
			
		||||
    enable = lib.mkEnableOption "zoxide";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    home.packages = [pkgs.zoxide];
 | 
			
		||||
 | 
			
		||||
    programs.zoxide = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      options = ["--cmd cd"];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue