diff options
author | Jeff Huffman <tejing@tejing.com> | 2023-12-21 11:35:33 -0500 |
---|---|---|
committer | Jeff Huffman <tejing@tejing.com> | 2023-12-21 12:11:35 -0500 |
commit | 25c947b3fc7b219e8ce3302b35d868194c57a20f (patch) | |
tree | 44a78babc5cdfcf22bbad8bbe70f45ad848dd762 /pkgs/games/steam | |
parent | aa070a5d9a9d217c186a172fc44877992c5c5542 (diff) |
steam: make privateTmp overrideable
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r-- | pkgs/games/steam/fhsenv.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 7bcc7976f1f92..d5b266cece376 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -7,6 +7,11 @@ , extraBwrapArgs ? [ ] # extra arguments to pass to bubblewrap (real default is at usage site) , extraArgs ? "" # arguments to always pass to steam , extraEnv ? { } # Environment variables to pass to Steam + +# steamwebhelper deletes unrelated electron programs' singleton cookies from /tmp on startup: +# https://github.com/ValveSoftware/steam-for-linux/issues/9121 +, privateTmp ? true # Whether to separate steam's /tmp from the host system + , withGameSpecificLibraries ? true # include game specific libraries }@args: @@ -285,9 +290,7 @@ in buildFHSEnv rec { exec steam ${extraArgs} "$@" ''; - # steamwebhelper deletes unrelated electron programs' singleton cookies from /tmp on startup: - # https://github.com/ValveSoftware/steam-for-linux/issues/9121 - privateTmp = true; + inherit privateTmp; extraPreBwrapCmds = '' install -m 1777 -d /tmp/dumps |