nongnu: steam: Make sandbox directory configurable.

* nongnu/packages/steam-client.scm
(make-container-wrapper): Read sandbox path from env var GUIX_SANDBOX_HOME.
This commit is contained in:
ison 2021-10-17 13:16:38 -06:00
parent 3246eac4fe
commit 904e05f136
No known key found for this signature in database
GPG key ID: 5E76B1AD0FC22F93

View file

@ -318,7 +318,8 @@ in a sandboxed FHS environment."
(manifest-file #$(file-append fhs-manifest))
(xdg-runtime (getenv "XDG_RUNTIME_DIR"))
(home (getenv "HOME"))
(sandbox-home (string-append home "/" #$(ngc-sandbox-home container)))
(sandbox-home (or (getenv "GUIX_SANDBOX_HOME")
(string-append home "/" #$(ngc-sandbox-home container))))
(preserved-env '("^DBUS_"
"^DISPLAY$"
"^DRI_PRIME$"