about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-03-04 12:06:01 +0000
committerGitHub <noreply@github.com>2024-03-04 12:06:01 +0000
commit6620dd578cad3b159143320f58056ce8b9b4847e (patch)
tree29c85e4513a09927d70bbae0bf8bfe56cbc3a7bc /nixos
parent1a3380fec6e3c2d539e58c4be6a4a094d7d14aea (diff)
parent9b4937d421802387d5c71b621ab0691b24ec68e4 (diff)
downloadnixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar.gz
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar.bz2
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar.lz
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar.xz
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.tar.zst
nixlib-6620dd578cad3b159143320f58056ce8b9b4847e.zip
Merge master into staging-next
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/steam.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix
index c7f1e622f7ba..d6e2a82af100 100644
--- a/nixos/modules/programs/steam.nix
+++ b/nixos/modules/programs/steam.nix
@@ -56,6 +56,8 @@ in {
           # use the setuid wrapped bubblewrap
           bubblewrap = "${config.security.wrapperDir}/..";
         };
+      } // optionalAttrs cfg.extest.enable {
+        extraEnv.LD_PRELOAD = "${pkgs.pkgsi686Linux.extest}/lib/libextest.so";
       });
       description = lib.mdDoc ''
         The Steam package to use. Additional libraries are added from the system
@@ -114,6 +116,11 @@ in {
         };
       };
     };
+
+    extest.enable = mkEnableOption (lib.mdDoc ''
+      Load the extest library into Steam, to translate X11 input events to
+      uinput events (e.g. for using Steam Input on Wayland)
+    '');
   };
 
   config = mkIf cfg.enable {