From 2be4067567d3d01bd642b9112fb52650bf0360d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Wed, 20 Nov 2024 21:34:11 +0100 Subject: [PATCH] fix(wezterm): broken font redering on 24.11 --- home/gui/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/home/gui/default.nix b/home/gui/default.nix index 209f09f..9898654 100644 --- a/home/gui/default.nix +++ b/home/gui/default.nix @@ -90,12 +90,19 @@ in # Terminal wezterm = { enable = cfg.terminal == "wezterm"; - extraConfig = lib.optionalString config.jhome.styling.enable '' - config = {} - config.hide_tab_bar_if_only_one_tab = true - config.window_padding = { left = 1, right = 1, top = 1, bottom = 1 } - return config - ''; + extraConfig = + lib.optionalString config.jhome.styling.enable # lua + '' + local wezterm = require("wezterm") + + local config = wezterm.config_builder() + + config.front_end = "WebGpu" + config.hide_tab_bar_if_only_one_tab = true + config.window_padding = { left = 1, right = 1, top = 1, bottom = 1 } + + return config + ''; }; alacritty.enable = cfg.terminal == "alacritty"; zellij.enable = cfg.terminal == "alacritty"; # alacritty has no terminal multiplexer built-in