Added fzf module
This commit is contained in:
		
							parent
							
								
									3303c5a249
								
							
						
					
					
						commit
						96ec7a91c2
					
				
					 2 changed files with 20 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -8,6 +8,7 @@
 | 
			
		|||
 | 
			
		||||
    programs = {
 | 
			
		||||
      firefox.enable = true;
 | 
			
		||||
      fzf.enable = true;
 | 
			
		||||
      gpg.enable = true;
 | 
			
		||||
      kitty.enable = true;
 | 
			
		||||
      zoxide.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -23,9 +24,4 @@
 | 
			
		|||
 | 
			
		||||
    windowManagers.sway.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # misc utils without custom config
 | 
			
		||||
  programs = {
 | 
			
		||||
    fzf.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								modules/home/programs/fzf/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/home/programs/fzf/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  cfg = config.${namespace}.programs.fzf;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.programs.fzf = {
 | 
			
		||||
    enable = lib.mkEnableOption "fzf";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    programs.fzf = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      catppuccin.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue