diff options
author | Shawn8901 <shawn8901@googlemail.com> | 2024-02-20 20:21:35 +0100 |
---|---|---|
committer | Shawn8901 <shawn8901@googlemail.com> | 2024-03-06 20:24:55 +0100 |
commit | 93a891f0e8e0feb96090eac48d9a2d5aaad28f20 (patch) | |
tree | 58bab12e9437e516b054aab4dc004d1e613cfa6b /nixos/modules | |
parent | 22ee716eb7b64acc5cfe1bba3e17a6243b2658e3 (diff) | |
download | nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar.gz nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar.bz2 nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar.lz nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar.xz nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.tar.zst nixlib-93a891f0e8e0feb96090eac48d9a2d5aaad28f20.zip |
steam: add extraCompatPackages
Diffstat (limited to 'nixos/modules')
-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 d6e2a82af100..d9fe8f54efd8 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; |