feat!: applyGtkFix -> gtkUseOpenGL, off by default
Some checks are pending
Check flake / check (push) Waiting to run

This commit is contained in:
Youwen Wu 2025-01-22 17:20:28 -08:00
parent c53e45ec51
commit 79e0f0cd27
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -31,9 +31,9 @@ in
''; '';
}; };
useAdvancedBindings = lib.mkEnableOption "advanced keybinds"; useAdvancedBindings = lib.mkEnableOption "advanced keybinds";
applyGtkFix = lib.mkOption { gtkUseOpenGL = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = cfg.enable; default = false;
description = '' description = ''
Whether to set GSK_RENDERER environment variable to stop GTK apps from crashing. Whether to set GSK_RENDERER environment variable to stop GTK apps from crashing.
''; '';
@ -93,8 +93,8 @@ in
"$Up" = "K"; "$Up" = "K";
"$Down" = "J"; "$Down" = "J";
env = env =
(lib.optionals cfg.applyGtkFix [ (lib.optionals cfg.gtkUseOpenGL [
"GSK_RENDERER,gl" "GSK_RENDERER,ngl"
]) ])
++ (lib.optionals (config.liminalOS.formFactor == "laptop" && !osConfig.liminalOS.theming.enable) [ ++ (lib.optionals (config.liminalOS.formFactor == "laptop" && !osConfig.liminalOS.theming.enable) [
"HYPRCURSOR_THEME,Bibata-Modern-Ice" "HYPRCURSOR_THEME,Bibata-Modern-Ice"