nongnu: steam: Preserve proxy environment variables and use regex for all vars.

* nongnu/packages/steam-client.scm (make-container-wrapper): Add proxy to
preserved environment variables and use regex matching for all existing
environment variables.
This commit is contained in:
ison 2021-03-09 20:41:30 -07:00
parent 73dd7d8ecd
commit 80decf053a
No known key found for this signature in database
GPG key ID: 5E76B1AD0FC22F93

View file

@ -317,16 +317,15 @@ in a sandboxed FHS environment."
(xdg-runtime (getenv "XDG_RUNTIME_DIR"))
(home (getenv "HOME"))
(sandbox-home (string-append home "/" #$(ngc-sandbox-home container)))
(preserved-env '("DBUS_SESSION_BUS_ADDRESS"
"DISPLAY"
"DRI_PRIME"
"SDL_AUDIODRIVER"
"STEAM_RUNTIME"
"STEAM_RUNTIME_HEAVY"
"STEAM_RUNTIME_PREFER_HOST_LIBRARIES"
"XAUTHORITY"
"XDG_DATA_HOME"
"XDG_RUNTIME_DIR"))
(preserved-env '("^DBUS_"
"^DISPLAY$"
"^DRI_PRIME$"
"_PROXY$"
"_proxy$"
"^SDL_"
"^STEAM_"
"^XAUTHORITY$"
"^XDG_"))
(expose `("/dev/dri"
"/dev/input" ; Needed for controller input.
,@(exists-> "/etc/machine-id")