summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorison <ison@airmail.cc>2021-03-09 20:41:30 -0700
committerison <ison@airmail.cc>2021-03-09 20:41:30 -0700
commit80decf053a2ec7cdfeddfc2440f8d5c5743e310f (patch)
tree0c3e5b40dc561dfb7a7a87d34838c07259385c3b
parent73dd7d8ecde7e1a57853cba61338bba8865b5290 (diff)
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.
-rw-r--r--nongnu/packages/steam-client.scm19
1 files changed, 9 insertions, 10 deletions
diff --git a/nongnu/packages/steam-client.scm b/nongnu/packages/steam-client.scm
index f5b1512..757486a 100644
--- a/nongnu/packages/steam-client.scm
+++ b/nongnu/packages/steam-client.scm
@@ -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")