steam: add extraCompatPackages
This commit is contained in:
@@ -43,6 +43,9 @@ in {
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
apply = steam: steam.override (prev: {
|
apply = steam: steam.override (prev: {
|
||||||
|
extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) {
|
||||||
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeBinPath cfg.extraCompatPackages;
|
||||||
|
}) // prev.extraEnv;
|
||||||
extraLibraries = pkgs: let
|
extraLibraries = pkgs: let
|
||||||
prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ];
|
prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ];
|
||||||
additionalLibs = with config.hardware.opengl;
|
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 {
|
remotePlay.openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user