From e106d261aba4ac96276fe6bd4450631b2b850c6e Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 7 Nov 2025 17:57:13 +0100 Subject: [PATCH] try to improve hyprland screen share stability --- hosts/nixos/thinkpad/system.nix | 1 + modules/hyprland/home.nix | 2 ++ modules/hyprland/system.nix | 11 ++++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index 8f4a255..f56d653 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -88,6 +88,7 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + wireplumber.enable = true; }; # Touchpad configuration (host-specific overrides) diff --git a/modules/hyprland/home.nix b/modules/hyprland/home.nix index eb08396..ad9003b 100644 --- a/modules/hyprland/home.nix +++ b/modules/hyprland/home.nix @@ -99,6 +99,8 @@ "GTK_THEME,Adwaita:dark" "XCURSOR_SIZE,24" "XCURSOR_THEME,Bibata-Modern-Ice" + "MOZ_ENABLE_WAYLAND,1" + "MOZ_DISABLE_RDD_SANDBOX,1" ]; # Execute apps at launch diff --git a/modules/hyprland/system.nix b/modules/hyprland/system.nix index 6c7883c..ea45279 100644 --- a/modules/hyprland/system.nix +++ b/modules/hyprland/system.nix @@ -40,7 +40,14 @@ in pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ]; - config.common.default = ["*"]; + config = { + common = { + default = "hyprland;gtk"; + }; + hyprland = { + default = "hyprland;gtk"; + }; + }; }; # Configure touchpad settings @@ -81,6 +88,8 @@ in pavucontrol nwg-displays swaynotificationcenter + qt5.qtwayland + qt6.qtwayland ]; # Printing with Windows Samba printer support