diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2024-03-08 11:06:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 11:06:15 +0000 |
commit | 488f2184075fb9ec3f7afafed648c7303ceee008 (patch) | |
tree | 04ac498e660f1268c60834a722f7baf46587be93 | |
parent | d178d3d1725504cc274f7397b371f17164a31a5d (diff) | |
parent | 93a891f0e8e0feb96090eac48d9a2d5aaad28f20 (diff) |
Merge pull request #293564 from Shawn8901/steam-compat-tools
steam: add extraCompatPackages
-rw-r--r-- | nixos/modules/programs/steam.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index d6e2a82af100e..d9fe8f54efd82 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -43,6 +43,9 @@ in { } ''; apply = steam: steam.override (prev: { + extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) { + STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeBinPath cfg.extraCompatPackages; + }) // prev.extraEnv; extraLibraries = pkgs: let prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ]; additionalLibs = with config.hardware.opengl; @@ -68,6 +71,16 @@ in { ''; }; + extraCompatPackages = mkOption { + type = types.listOf types.package; + default = [ ]; + 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">. + ''; + }; + remotePlay.openFirewall = mkOption { type = types.bool; default = false; |