games/steam: Include ~/.config in sandbox

Some games place their state there.
This commit is contained in:
Simon Bruder 2022-01-03 11:13:21 +01:00
parent e64480c820
commit 540f89bff1
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -6,7 +6,7 @@ let
steam-sandbox = pkgs.writeShellScriptBin "steam-sandbox" /* bash */ ''
set -euo pipefail
base_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/steam-sandbox"
mkdir -p "$base_dir"/{.local/share,.steam,data}
mkdir -p "$base_dir"/{.local/share,.steam,.config,data}
bubblewrap_args=(
# sandboxing
--unshare-all
@ -59,6 +59,7 @@ let
# shared data
--bind "$base_dir/.local/share" "$HOME/.local/share"
--bind "$base_dir/.steam" "$HOME/.steam"
--bind "$base_dir/.config" "$HOME/.config"
--bind "$base_dir/data" "$HOME/data"
# input