Added kitty module
This commit is contained in:
		
							parent
							
								
									cf02022233
								
							
						
					
					
						commit
						28035db14c
					
				
					 2 changed files with 33 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,10 @@
 | 
			
		|||
      tmux.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    programs = {
 | 
			
		||||
      kitty.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    tools = {
 | 
			
		||||
      direnv.enable = true;
 | 
			
		||||
      eza.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										29
									
								
								modules/home/programs/kitty/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								modules/home/programs/kitty/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  namespace,
 | 
			
		||||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  inherit (lib) mkEnableOption mkIf;
 | 
			
		||||
 | 
			
		||||
  cfg = config.${namespace}.programs.kitty;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.programs.kitty = {
 | 
			
		||||
    enable = mkEnableOption "kitty";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    programs.kitty = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      font = {
 | 
			
		||||
        size = 12;
 | 
			
		||||
        package = pkgs.nerdfonts.override {fonts = ["Hack"];};
 | 
			
		||||
        name = "Hack Nerd Font";
 | 
			
		||||
      };
 | 
			
		||||
      settings = {
 | 
			
		||||
        background_opacity = "0.95";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue