diff options
author | Shawn8901 <shawn8901@googlemail.com> | 2024-03-25 23:38:33 +0100 |
---|---|---|
committer | Shawn8901 <shawn8901@googlemail.com> | 2024-03-25 23:38:33 +0100 |
commit | 942a3815732370d7609a74600c3dbd85de49e7bc (patch) | |
tree | 8fb60f8034e2c3ce2cf80f27f3018b40a97aecb7 /nixos | |
parent | 57e6b3a9e4ebec5aa121188301f04a6b8c354c9b (diff) | |
download | nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar.gz nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar.bz2 nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar.lz nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar.xz nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.tar.zst nixlib-942a3815732370d7609a74600c3dbd85de49e7bc.zip |
steam: fix merging of extraEnv with extest enabled
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/steam.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index c93a34f61849..bab9bf8107b6 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -45,6 +45,8 @@ in { apply = steam: steam.override (prev: { extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) { STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeSearchPathOutput "steamcompattool" "" cfg.extraCompatPackages; + }) // (optionalAttrs cfg.extest.enable { + LD_PRELOAD = "${pkgs.pkgsi686Linux.extest}/lib/libextest.so"; }) // (prev.extraEnv or {}); extraLibraries = pkgs: let prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ]; @@ -59,8 +61,6 @@ 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 |