about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorAtemu <atemu.main@gmail.com>2024-03-16 20:57:05 +0000
committerGitHub <noreply@github.com>2024-03-16 20:57:05 +0000
commit44a3dd2ef41c60fd34681257e858344217f91853 (patch)
tree8dc14fe6f22cd813d611c6d684bd434a42187141 /nixos/modules/programs
parent76a7da4217d7fc9249e2d8a62b59f18cd96246a0 (diff)
parentbdc55d2f8671881b81d6797928b3e7569235b1ba (diff)
downloadnixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar.gz
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar.bz2
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar.lz
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar.xz
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.tar.zst
nixlib-44a3dd2ef41c60fd34681257e858344217f91853.zip
Merge pull request #296009 from Atemu/steamcompattools
proton-ge-bin: init at 9-1, nixos/steam: use steamcompattool output for extraCompatPackages
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/steam.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix
index 31803f061dce..c93a34f61849 100644
--- a/nixos/modules/programs/steam.nix
+++ b/nixos/modules/programs/steam.nix
@@ -44,8 +44,8 @@ in {
       '';
       apply = steam: steam.override (prev: {
         extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) {
-            STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeBinPath cfg.extraCompatPackages;
-          }) // (prev.extraEnv or {});
+          STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeSearchPathOutput "steamcompattool" "" cfg.extraCompatPackages;
+        }) // (prev.extraEnv or {});
         extraLibraries = pkgs: let
           prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ];
           additionalLibs = with config.hardware.opengl;
@@ -74,10 +74,17 @@ in {
     extraCompatPackages = mkOption {
       type = types.listOf types.package;
       default = [ ];
+      example = literalExpression ''
+        with pkgs; [
+          proton-ge-bin
+        ]
+      '';
       description = lib.mdDoc ''
         Extra packages to be used as compatibility tools for Steam on Linux. Packages will be included
         in the `STEAM_EXTRA_COMPAT_TOOLS_PATHS` environmental variable. For more information see
-        <https://github.com/ValveSoftware/steam-for-linux/issues/6310">.
+        https://github.com/ValveSoftware/steam-for-linux/issues/6310.
+
+        These packages must be Steam compatibility tools that have a `steamcompattool` output.
       '';
     };