From d269d2e5a001e360314670c58a46c2ac2a111b6b Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Wed, 17 Jul 2024 21:42:43 -0600 Subject: [PATCH] Enable wayland support in chromium based apps --- common/pc/chromium.nix | 4 ++-- common/pc/default.nix | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/pc/chromium.nix b/common/pc/chromium.nix index f91d517..2af83cc 100644 --- a/common/pc/chromium.nix +++ b/common/pc/chromium.nix @@ -41,7 +41,7 @@ in "SpellcheckLanguage" = [ "en-US" ]; }; defaultSearchProviderSuggestURL = null; - defaultSearchProviderSearchURL = " https://duckduckgo.com/?q={searchTerms}&kp=-1&kl=us-en"; + defaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}&kp=-1&kl=us-en"; }; # hardware accelerated video playback (on intel) @@ -52,7 +52,7 @@ in # ungoogled = true; # --enable-native-gpu-memory-buffers # fails on AMD APU # --enable-webrtc-vp9-support - commandLineArgs = "--use-vulkan --ozone-platform-hint=auto"; + commandLineArgs = "--use-vulkan"; }; }; # todo vulkan in chrome diff --git a/common/pc/default.nix b/common/pc/default.nix index b3f6eef..a4129e1 100644 --- a/common/pc/default.nix +++ b/common/pc/default.nix @@ -89,5 +89,8 @@ in # for luks onlock over tor services.tor.enable = true; services.tor.client.enable = true; + + # Enable wayland support in various chromium based applications + environment.sessionVariables.NIXOS_OZONE_WL = "1"; }; }