hm: move wezterm lua config to the nix file
This commit is contained in:
		
							parent
							
								
									13b9de2b12
								
							
						
					
					
						commit
						c9d8d353ba
					
				
					 2 changed files with 20 additions and 18 deletions
				
			
		| 
						 | 
					@ -3,6 +3,25 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  programs.wezterm = {
 | 
					  programs.wezterm = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    extraConfig = builtins.readFile ./wezterm.lua;
 | 
					    extraConfig = # lua
 | 
				
			||||||
 | 
					      ''
 | 
				
			||||||
 | 
					        local wezterm = require("wezterm")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return {
 | 
				
			||||||
 | 
					        	color_scheme = "Catppuccin Frappe",
 | 
				
			||||||
 | 
					        	enable_wayland = false, -- Unfortunately broken on Hyprland, AGAIN
 | 
				
			||||||
 | 
					        	font = wezterm.font("FantasqueSansM Nerd Font"),
 | 
				
			||||||
 | 
					        	font_size = 13,
 | 
				
			||||||
 | 
					        	hide_tab_bar_if_only_one_tab = true,
 | 
				
			||||||
 | 
					        	hide_mouse_cursor_when_typing = false,
 | 
				
			||||||
 | 
					        	window_background_opacity = 0.88,
 | 
				
			||||||
 | 
					        	window_padding = {
 | 
				
			||||||
 | 
					        		left = 18,
 | 
				
			||||||
 | 
					        		right = 18,
 | 
				
			||||||
 | 
					        		top = 18,
 | 
				
			||||||
 | 
					        		bottom = 18,
 | 
				
			||||||
 | 
					        	},
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,17 +0,0 @@
 | 
				
			||||||
local wezterm = require("wezterm")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
return {
 | 
					 | 
				
			||||||
	color_scheme = "Catppuccin Frappe",
 | 
					 | 
				
			||||||
	enable_wayland = false, -- Unfortunately broken on Hyprland, AGAIN
 | 
					 | 
				
			||||||
	font = wezterm.font("FantasqueSansM Nerd Font"),
 | 
					 | 
				
			||||||
	font_size = 13,
 | 
					 | 
				
			||||||
	hide_tab_bar_if_only_one_tab = true,
 | 
					 | 
				
			||||||
	hide_mouse_cursor_when_typing = false,
 | 
					 | 
				
			||||||
	window_background_opacity = 0.88,
 | 
					 | 
				
			||||||
	window_padding = {
 | 
					 | 
				
			||||||
		left = 18,
 | 
					 | 
				
			||||||
		right = 18,
 | 
					 | 
				
			||||||
		top = 18,
 | 
					 | 
				
			||||||
		bottom = 18,
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue