From 1e99cadd38f67bddcf35c0b57a0d3b99ccc4869f Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 29 Aug 2024 17:29:07 +0200 Subject: [PATCH] go back to WebGl / wayland disabled --- flake.nix | 1 - home/base/programs/wezterm.nix | 23 +++++------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index ab7371c..f01d6d2 100644 --- a/flake.nix +++ b/flake.nix @@ -1,4 +1,3 @@ - { description = "nezia's nixos configuration"; inputs = { diff --git a/home/base/programs/wezterm.nix b/home/base/programs/wezterm.nix index 9a5df1d..7b48adc 100644 --- a/home/base/programs/wezterm.nix +++ b/home/base/programs/wezterm.nix @@ -1,23 +1,10 @@ -{ pkgs, ... }: +{ ... }: - -# Workaround for libdecor not being fully implemented yet when using wayland - https://github.com/wez/wezterm/issues/1969#issuecomment-1597817011 -let - wrappedWezterm = pkgs.symlinkJoin { - name = "wezterm"; - paths = [ pkgs.wezterm ]; - buildInputs = [ pkgs.makeWrapper ]; - postBuild = '' - wrapProgram $out/bin/wezterm \ - --set WAYLAND_DISPLAY "wayland-1" \ - --set GTK_THEME "adwaita" - ''; - }; - in { + # WebGpu / Nvidia bug (also crashes on AMD drivers): https://github.com/wez/wezterm/issues/6050 + # Rendering broken in master: https://github.com/NixOS/nixpkgs/issues/336069 programs.wezterm = { enable = true; - package = wrappedWezterm; extraConfig = '' local w = require('wezterm') @@ -70,8 +57,8 @@ let end return { - front_end = "WebGpu", - enable_wayland = true, + front_end = "WebGpu", + enable_wayland = false, hide_tab_bar_if_only_one_tab = true, show_new_tab_button_in_tab_bar = false, harfbuzz_features = { "ss01", "ss03" },