From 27a9808bec6f2ccfe9e8c644998368579648c394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Fri, 9 Jan 2026 09:16:16 -0700 Subject: [PATCH] fix(steam): hack to work around annoying clipboard thin --- modules/nixos/steam.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/nixos/steam.nix b/modules/nixos/steam.nix index ec6a766..72053a3 100644 --- a/modules/nixos/steam.nix +++ b/modules/nixos/steam.nix @@ -25,6 +25,15 @@ in { extraPackages = with pkgs; [ mono gtk3 gtk3-x11 libgdiplus zlib nss SDL2 ]; + # Work around xwayland-satellite#252 by clearing the clipboard + # before launching Steam. + # + # https://github.com/Supreeeme/xwayland-satellite/issues/252 + package = pkgs.steam.override { + extraPreBwrapCmds = + let wl-copy = lib.getExe' pkgs.wl-clipboard "wl-copy"; + in "${wl-copy} --clear"; + }; }; programs.gamemode = { @@ -39,7 +48,8 @@ in { enable32Bit = true; }; - environment.persistence.${config.sydnix.impermanence.persistDirectory}.users = + environment.persistence + .${config.sydnix.impermanence.persistDirectory}.users = builtins.listToAttrs (builtins.map (user: {