mirror of
				https://github.com/materusPL/nixos-config
				synced 2025-11-03 22:10:28 +01:00 
			
		
		
		
	home-profile: changes to wezterm
This commit is contained in:
		
							parent
							
								
									eceae11a41
								
							
						
					
					
						commit
						2a65700253
					
				@ -3,7 +3,6 @@ let
 | 
			
		||||
  cfg = config.materus.profile.wezterm;
 | 
			
		||||
  zshCfg = ''
 | 
			
		||||
    source "${config.programs.wezterm.package}/etc/profile.d/wezterm.sh"
 | 
			
		||||
    alias 'wezcraft'="wezterm --config font=\"wezterm.font 'Monocraft Nerd Font'\""
 | 
			
		||||
  '';
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
@ -35,6 +34,9 @@ in
 | 
			
		||||
          fonts = [ "Hack" ];
 | 
			
		||||
        }))
 | 
			
		||||
        (lib.mkIf cfg.enableWezcraft (pkgs.monocraft))
 | 
			
		||||
        (lib.mkIf cfg.enableWezcraft (pkgs.writeShellScriptBin "wezcraft" ''
 | 
			
		||||
          ${lib.getExe config.programs.wezterm.package} --config font="wezterm.font 'Monocraft Nerd Font'" $@
 | 
			
		||||
        ''))
 | 
			
		||||
      ];
 | 
			
		||||
 | 
			
		||||
      materus.profile.zsh.endConfig = lib.optionalString cfg.enableWezcraft zshCfg;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user